[pygtk] Creating dynamical buttons
Petr Hracek
phracek at redhat.com
Tue Apr 9 18:11:16 WST 2013
Hi folks,
I have simple question but I do not know how to do that?
Let's say that I have script which returns in option help following:
./myscript --help
-- run
-- update
-- configuration
-- testing
I would like to create GUI which will have label, those 4 checkbuttons
and last button called "TEST"
I would like to create those 4 buttons dynamically so that when user
will click on "TEST" button
I will check whether specific button was activate or not.
Buttons are created now like this:
button = Gtk.CheckButton(sub.kwargs['help']) # which will returns
run/update/configuration/testing
button.connect("clicked", self.button_clicked)
self.boxFinal.pack_start(button, False, False, 0)
How to check what button was activate?
Over the label?
--
S pozdravem / Best regards
Petr Hracek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20130409/e7e90c20/attachment.html>
More information about the pygtk
mailing list