Greetings all,
    Is there anyway I can obtain the check box button's label?


For example I create a list of checkboxes all calling the same eventhandler.
I would like to be able to look at the label of the checkbox button to see
what the label is.

ie
   # Pseudo list...  
   checkbox1 = GtkCheckButton(check1)
   checkbox1.connect('toggle', checkClicked)
   checkbox2 = GtkCheckButton(check2)
   checkbox2.connect('toggle', checkClicked)

   def checkClicked(*args):
       # at this point args is an instance of the checkbox
       # so I should be able to do this!
       label = args.get_label()
       if label = "Check1":
            do something
       else label = "Check2  etc.

Questions is how do I get the label?

Any suggestions/comments are welcome.


Thanks
Ranjan



_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to