Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6212
| Date | 2011-05-25 10:51 +0200 |
|---|---|
| From | Tracubik <affdfsdfdsfsd@b.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: pyGTK identify a button |
| References | <4ddcbb68$0$18241$4fafbaef@reader2.news.tin.it> <mailman.2059.1306313058.9059.python-list@python.org> |
| Message-ID | <4ddcc326$0$18248$4fafbaef@reader2.news.tin.it> (permalink) |
| Organization | TIN.IT (http://www.tin.it) |
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 :-/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
pyGTK identify a button Tracubik <affdfsdfdsfsd@b.com> - 2011-05-25 10:18 +0200
Re: pyGTK identify a button Claudiu Nicolaie CISMARU <claudiu@virtuamagic.com> - 2011-05-25 11:44 +0300
Re: pyGTK identify a button Tracubik <affdfsdfdsfsd@b.com> - 2011-05-25 10:51 +0200
Re: pyGTK identify a button Claudiu Nicolaie CISMARU <claudiu@virtuamagic.com> - 2011-05-25 12:19 +0300
Re: pyGTK identify a button Chris Angelico <rosuav@gmail.com> - 2011-05-25 18:58 +1000
Re: pyGTK identify a button Cousin Stanley <cousinstanley@gmail.com> - 2011-05-25 16:22 +0000
Re: pyGTK identify a button Alister Ware <alister.ware@ntlworld.com> - 2011-05-26 17:50 +0000
csiph-web