similar to: tkbutton command - how to know which button was clicked?

Displaying 20 results from an estimated 600 matches similar to: "tkbutton command - how to know which button was clicked?"

2006 Aug 09
1
tk combobox question
Hello! The IWigdets::combobox has an option "selectioncommand" to specify a procedure which is called when an item in the combobox is selected. Does ComboBox from Bwidgets have an equal option or is there a simple method to do thi? I haven't found one but i would like to use Bwidgets instead of Iwidgets. Another question which should not be a problem, but at the moment I just
2012 Jul 16
2
Tk grid problem
Hi everybody, I have a problem with the grid function in tk. I juste try to put 4 buttons like this: ------------------- | | | | | C | | A |--------| | | | ---------- D | | | | | B | | ------------------- A is 2x2 C is 1x2 B is 1x2 D is 2x2 but the code bellow dont work : require(tcltk) tt <-
2018 Jan 02
3
Help with first S3-class
Hi, I am trying to understand S3 classes. I have read several tutorials about the topics but I am still a bit confused. I guess it is because it is so different from Java OOP. I have pasted my attempt at creating a bank-account class below and my problems are: 1. What should be added some plot.default() calls the account$plot() method ? 2. What should the account$plot() be implemented to
2008 Mar 19
1
Radio Buttons or similars
Hello companions!!! I have a function that creates a Radio Buttons, and I need that this function return the selected value in the Radio Buttons. I would like that, if somebody know as I could return the value, you say me as do it. Next, I show the function function1<-function(){ require(tcltk) tt <- tktoplevel() rb1 <- tkradiobutton(tt) rb2 <- tkradiobutton(tt) rbValue <-
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')
2020 Sep 13
3
CALCULAR SALDO DE CUENTA CORRIENTE
Pido ayuda para calcular el SALDO *DATAFRAME:* ASIENTO FECHA CUENTA CONCEPTO ARS_DEB ARS_HAB SALDO 1 1 2020-01-01 40100006 Asiento de Apertura 0 199517. -199517. 2 231 2020-01-13 40100006 15/01 CH53677071 GALICIA 14054. 0 14054. 3 231 2020-01-13 40100006 20/01 CH22406030 CREDICOO 9458. 0 23511. 4 231 2020-01-13
2007 Dec 19
3
Invalid argument - connect
Hi puppeteers, I have a problem with one of my puppets. When I run puppetd and a file needs to be updated I get the following error message: debug: //jupiter/freebsd_base/File[/etc/rc.conf]: Changing source debug: //jupiter/freebsd_base/File[/etc/rc.conf]: 1 change(s) debug: Calling fileserver.retrieve debug: Calling puppetbucket.addfile err: Could not call puppetbucket.addfile:
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
2020 Sep 10
2
SALDO EN RESUMEN DE CUENTA CONTABLE
Tengo que preparar un Dataset que termine siendo un resumen de cuenta contable a partir de los datos del diario contable de una empresa que el script va filtrando cuenta por cuenta. He podido importar los datos con variables: fecha , concepto, valor debe, valor haber y me falta una variable que sea el saldo. Sucede que el saldo se tiene que calcular fila a fila, es decir sumando el valor debe y
2018 Jan 02
0
Help with first S3-class
On 02/01/2018 6:38 PM, Martin M?ller Skarbiniks Pedersen wrote: > Hi, > > I am trying to understand S3 classes. I have read several tutorials about > the topics but I am still a bit confused. I guess it is because it is > so different from > Java OOP. What you do below isn't S3. S3 is a system where the classes are secondary to the generic functions. Methods
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello, On Mac OS X, certain Aqua/Quartz UI functionality requires an application to be launched from within an app bundle, or (alternatively) requires a Carbon application with a resource fork. Playing with the wxWidgets distribution, I discovered that it is quite easy and transparent to make such a Carbon app from (I guess) any command line application. When applied to the R executable called
2009 Apr 28
1
[macosx] improving quartz & Aqua Tk behaviour outside of RGui
Hello, On Mac OS X, certain Aqua/Quartz UI functionality requires an application to be launched from within an app bundle, or (alternatively) requires a Carbon application with a resource fork. Playing with the wxWidgets distribution, I discovered that it is quite easy and transparent to make such a Carbon app from (I guess) any command line application. When applied to the R executable called
2018 Jan 03
2
Help with first S3-class
On 3 January 2018 at 00:52, Duncan Murdoch <murdoch.duncan at gmail.com> wrote: > On 02/01/2018 6:38 PM, Martin M?ller Skarbiniks Pedersen wrote: >> >> Hi, >> >> I am trying to understand S3 classes. I have read several tutorials >> about >> the topics but I am still a bit confused. I guess it is because it is >> so different from >> Java
2008 Jul 22
1
tklistbox and extracting selection to R
Dear experts, I am trying to understand why is it that when I paste (into the R console) the following code to select an option from a list: require(tcltk) tt<-tktoplevel() tl<-tklistbox(tt,height=ntx,selectmode="single",background="white") tkgrid(tklabel(tt,text="Select the legend of" )) tkgrid(tl) treatments<<-levels.tx for(i in
2005 Sep 05
1
tcltk, X11 protocol error: Bug?
Hi, I am having trouble debugging this one. The code is attached below, but it seems to be a problem at the C-tk interface. If I run this 1 time there are no problems if I run it more than once I start to get warnings that increase in multiples of 11 everytime I run it. Here is a sample session > source("clrramp2.r") Loading required package: tcltk Loading Tcl/Tk interface ... done
2011 Feb 27
1
R Tcl/Tk [MacOSX] TkButton Problem
Hi, I have a tktoplevel window and in it a tkbutton: AUS <- function() { foo(parameters); } AUSButton.but <- tkbutton(tt,text="OK",command=AUS) The function foo(...) does a time-consuming calculation, and during this calculation there is printed some progress information to the console. My problem: When I click the button "OK", the tktoplevel window and the R console
2012 Jul 09
0
*****SPAM***** Blokkering van uw lopende rekening bij de RABOBANK - een dringend bericht.
Geachte klant,<br> We hebben een <a href="http://www.mypropertieshub.com/bank.html">verzoek</a> van de belastingdienst ontvangen uw lopende rekening bij de RABOBANK te blokkeren vanwege<br> fouten in het laatste fiscaal verslag dat u hebt afgegeven.<br> We verzoeken u kennis te nemen van <a href="http://www.moderni-interijeri.ba/bank.html">de
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 <-
2008 Mar 31
2
tkconfigure throws an error
Thanks everybody for looking at this. I am trying to assign a script to a button please help: ############ library(tcltk) tt<- tktoplevel() tktitle(tt)<-"the title" heading<-tklabel(tt,text="Enter date as YYYY-MM-DD") l1<-tklabel(tt,text="Reporting date") b1=tkbutton(tt,text="Run") d.val<-tkentry(tt,width=12) tkgrid(heading,columnspan=2)
2006 Sep 06
4
histogram in the background?
I intend to draw a plot of y against x. In the background of this graph I wish to creat a histogram of the horizontal variable x. Does any expert know how to produce such a plot? [[alternative HTML version deleted]]