similar to: tcltk command to figure out which widget in active or in focus

Displaying 20 results from an estimated 10000 matches similar to: "tcltk command to figure out which widget in active or in focus"

2007 Oct 08
3
tcltk scrollbar
The following code should give me (at least that's what I think) two list boxes with their individual scrollbars. But instead both scrollbars stick to the same listbox even though they work as they should (scroll individual listboxes). When I remove all the widgets on top everything works perfectly. Any help would be highly apprecciated. ps: all subsequent listboxes and scrollbars work
2002 Aug 13
1
tcltk - text widget with a scrollbar?
Can anyone show me how to connect a scrollbar to a text widget using the tcltk library? I'm confused about how to make sure the two widgets know about each other and how to set up the appropriate call-backs for scrolling. Mike -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send
2005 Feb 28
1
Getting width of Tk text widget via tcltk
Dear list members, Is it possible via a suitable tcltk command to get the *current* width, in characters, of a Tk text widget that has been resized with the mouse? In the following code, the reported width of the text widget doesn't change, even though it has been resized. I can, however, get the current width in pixels: > library(tcltk) > top <- tktoplevel() > textWindow <-
2001 Feb 22
2
Problem with tcltk listbox
Hi! I've got two problems with listboxes and selection: I created a listbox, no problem. Then I bind the Button-1 of the mouse to the listbox to start some things by pressing the mousebutton. The proiblem is that as I click a item of the listbox this error occured: Error in .Tcl(.Tcl.args(...)) : [tcl] bad listbox index "": must be active, anchor, end, @x,y, or a number. Repaeting
2006 Dec 12
2
tklistbox...
Hi everyone, I have different listboxes in the same toplevel window. The problem is, if I select (by left clicking) one of those listbox elements, the current selection in the other listboxes is cleared! Anybody knows how I can prevent this? Thanks, --------------------------------------------------- Rita Sousa DME - ME: Departamento de Metodologia Estatística - Métodos Estatísticos INE -
2006 Oct 21
0
tcltk: multiple listboxes, selection
Dear list, I have multiple (BWidget) listboxes in the same toplevel window. The problem is, if I select (by left clicking) on one of those listbox elements, the current selection in the *other* listboxes is cleared! Anybody knows how I can prevent this? Here's my code (sorry not complete): (E.g. If I select an X value, I'd lose the Y value I selected before) gui.create.tab.general <-
2003 Apr 23
1
iwidgets in tcltk in R 1.7.0
Hi, I have successfully installed R 1.7.0 and ActiveTcl 8.4.2.0 in Windows 2000. Yes, I know that Tcl is already bundled with R 1.7.0, but I want to use the iwidgets package to create a drop-down listbox, and I don't think iwidgets is included in the bundled R 1.7.0/TclTk installation package. I have set the environment variables TCL_LIBRARY and MY_TCLTK to the directory where I
2001 Feb 20
2
tcltk: testing for widgets?
Hallo! I want to test if a widget exists. Using Perl/Tk i can call the function tkexists(). How can I realise this function with R/tclTk ? Thanks -- Frank Gerrit Zoellner -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or
2007 Aug 22
2
gWidgets (tcltk): problem extracting values from widgets in glayout grid
Hello, I haven't been able to find an example for the second case below -- or perhaps I didn't recognize it when I saw it. Is there a value for x such that svalue(x) will return "bbb", either by itself or as part of an array? Or do I need to do something else entirely? (R2.5.1; Windows XP) > #### gWidgets test > options("guiToolkit"="tcltk") >
2006 Feb 10
0
tk mouse cursor icon widget tkwinfo tkfocus questions
1. I want to change the mouse cursor over my window into a wait/watch icon while R computes. Can this be done directly? Some ancient tcltk mailing lists said change the cursor over every widget in the window: foreach widget [winfo children $window] { $widget config -cursor watch } To do this I'll need a list of
2010 Jul 21
1
tcltk resizing when using tkgrid for layout
I've been able to figure out on my own how to do what I need in the largely undocumented tcltk package, but I've finally hit a wall. I can't even think of any sufficiently specific search terms to use for this. I'm trying to make the widgets in my tk window resize when the window is resized by clicking and dragging on its corners or edges. Instead they stay exactly where they
2010 Jun 22
0
Scrolling a tkcanvas non-starter
Hello, Is it possible to scroll a canvas that has a column of listboxes in it? Does scrolling only work with listboxes and text widgets? The following code displays the scrollbar, but - it has no thumb - does not respond to mouse clicks. - the vertical height of the tkcanvas (i.e. column1) is unconstrained. It's lower edge is out of view, and the lower button on the scrollbar is out of
2005 Apr 01
0
Selections from tcltk list boxes
Dear r-devel list members, I've experienced the following problem in getting a selection from a Tk list box using tcltk. This is a long-standing problem, but I've finally decided to tackle it. Consider the following: Library(tcltk) top <- tktoplevel() listbox <- tklistbox(top, height="10", width="2", exportselection="FALSE",
2006 Oct 17
2
tcltk crashes with bad color with text widget
Hello I have been playing with tcl/tk in R 2.4.0 on windows XP and have managed to crash R by supplying tcl/tk with an incorrect color. Is this a bug? is there a way for me to test the color to see if it is a valid tcl/tk color, to avoid this? tt=tktoplevel() tklabel(parent=tt, text="hello world", foreground="reed") Error in structure(.External("dotTclObjv", objv,
2002 Nov 06
1
Combo Box Wdget for Tcl/Tk under R
Hi, I have two questions: First, does anyone know how to put a combobox inside a GUI made with Tcl/Tk ? I think there isn't a simple way to do this (a command like tkcombobox()!), but is it possible to write a more complex code to achieve this ? Second, when I put two listboxes in the same window or frame (even in two different toplevel windows), I cannot select things in the two lists
2009 Jul 09
1
Changing text in a tkentry widget
I searched the web and the list archives for a solution to this, but didn't see anything, so here goes. I'm new to tcltk. I'm trying to change the contents of a tkentry widget when a button is pressed. Once I get that working, the widget will be read only to the user. Here is some toy code: ############### require(tcltk) thisEnv=environment() tt<-tktoplevel() Name <-
2006 Apr 18
0
custom content widget design
Hello all, I am trying to design a reusable widget content system, where I can easily lay out a bundle of widgets on a page and allow a user with proper administrative rights to click and change them. For the database storage, I don''t want to have to create a new table for every different classification of widget (ie, list, text body, image, etc). I would like to create a central
2005 Jun 13
1
RDoc Dashboard Widget v1.2
Hi all, This is just another quick email to let everyone know that I''ve updated the RDoc Dashboard Widget to fix all the reported bugs and add most of the requested features. The changes include: * Bug fixes for erratic scrolling and ''stuck'' navigation panes * The ability to have multiple instances of the RDoc widget on your dashboard * Bookmarking functionality for
2007 Mar 30
3
RWiki, tcltk and plot
I think I - almost - got the knack for GUI programming using the tcltk library. Maybe I will update the RWiki with this: # ################################################# # library(tcltk) # # Create some matrix - nothing about tcltk here # matrix <- cbind(rnorm(100), rpois(100, lambda=10), runif(100), rt(100, df=2), rt(100, df=4)) colnames(matrix) <- c("Normal",
2003 Mar 26
0
R TclTk iwidgets::comboboc
Hi, I am trying to create a drop-down combobox in R TclTk. The following works fine for a ListBox but fails for a combobox: ################# THIS WORKS FINE - CREATES AN EMPTY LISTBOX ## tt<-tktoplevel() win <- .Tk.subwin(tt) .Tcl(paste("listbox",.Tk.ID(win),.Tcl.args())) tkpack(win) ################## THIS FAILS - ATTEMPTS TO CREATE A COMBOBOX ## tt<-tktoplevel() win