search for: tkwinfo

Displaying 6 results from an estimated 6 matches for "tkwinfo".

Did you mean: texinfo
2006 Feb 10
0
tk mouse cursor icon widget tkwinfo tkfocus questions
...ildren $window] { $widget config -cursor watch } To do this I'll need a list of R/tcl widget objects: lapply(widglist, function(z) tkconfigure(z, cursor="watch")) From where can I get this widglist? I tried: > tkwinfo("children",topwindow) <Tcl> .1.1 .1.2 .1.3 I'm guessing this is a string directly returned from tcl. Is there a way to turn this into a list of widgets after some parsing? Right now I'm using a hardcoded list for widglist, but if I or others change...
2001 Feb 03
1
tk non-widget commands (esp. update and winfo)
...you! Alas, I also have questions: In Tcl everything is a string [*]. This is not the case in R, of course. So why are return values of tk commands still strings? (Is there any other reason than speed or "package is work in progress"?) Example: > tt <- tktoplevel () > tkwinfo ("width", tt) [1] "200" Could (Should?) be: > tt <- tktoplevel () > tkwinfo ("width", tt) [1] 200 with > tkwidth <- function (widget) as.numeric (tkcmd ("winfo", "width", widget)) Maybe a better example is the use of...
2008 Oct 30
3
using yscrollcommand in tkcanvas crashes R (PR#13231)
Full_Name: Sundar Dorai-Raj Version: 2.8.0 OS: Windows Submission from: (NULL) (76.220.41.126) The following code crashes R: library(tcltk) tt <- tktoplevel() tc <- tkcanvas(tt, yscrollcommand = function(...) tkset(ts, ...)) > sessionInfo() R version 2.8.0 (2008-10-20) i386-pc-mingw32 locale: LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
2005 Feb 28
1
Getting width of Tk text widget via tcltk
..."white", height=20, width=80, wrap="none") > tkgrid(textWindow, sticky="news") <Tcl> > tkgrid.rowconfigure(top, 0, weight=1) <Tcl> > tkgrid.columnconfigure(top, 0, weight=1) <Tcl> > tkcget(textWindow, width=NULL) <Tcl> 80 > tkwinfo("width", textWindow$ID) <Tcl> 486 > # resize window with mouse > tkcget(textWindow, width=NULL) <Tcl> 80 > tkwinfo("width", textWindow$ID) <Tcl> 743 I could convert pixels to characters, but wonder whether I can get the latter directly. Any help...
2009 Oct 19
1
Problem with geometry manager in TclTK
Hello, everyone. I have the following problem with TclTk: I create some windows and want to change their position with geometry manage (sometimes they will be centered, sometimes not). If the toplevel is created and its dimensions are gathered via 'tkwinfo', I get (usually) correct values. However, if this window is created by a function (in the following example, by 'ask.format') and this function is called by another function ('inputDialog', as follows), I always get the value '1' for width and height. Provided below is...
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