Re: pyGTK identify a button
- From: Tracubik <affdfsdfdsfsd@xxxxx>
- Date: Wed, 25 May 2011 10:51:50 +0200
On 25/05/2011 10:44, Claudiu Nicolaie CISMARU wrote:
the two button are connected (when clicked) to infoButton(self,
widget,
data=None)
From documentation:
handler_id = object.connect(name, func, func_data)
So:
button1.connect(when is pressed, your_function, 1)
button2.connect(when is pressed, your_function, 2)
(This code is conception, I don't really know how is done in GTK).
thanks but, as i've sayed before, i can't use func_data 'cause i don't know how to set it on glade3.8, that is the program i use to create the GUI.
Anyway, i think this is the only way to identify the button :-/
.
- Follow-Ups:
- Re: pyGTK identify a button
- From: Claudiu Nicolaie CISMARU
- Re: pyGTK identify a button
- References:
- pyGTK identify a button
- From: Tracubik
- Re: pyGTK identify a button
- From: Claudiu Nicolaie CISMARU
- pyGTK identify a button
- Prev by Date: Re: Hotshoting recursive function
- Next by Date: Re: Link errors embedding Python 3.2
- Previous by thread: Re: pyGTK identify a button
- Next by thread: Re: pyGTK identify a button
- Index(es):