Hello,

I was wondering if there is a way to connect a widget such as a gtk.SpinButton() to a variable. So say i stored some value into a variable, myVar = 10, the value shown on the Spinner would update to the new value.

This part may not be so clear, but it just explains why i need to be able to do the above:

I currently have a (rather large) array that holds the values of each one of my spinners when they get updated, using the command:
mySpin.connect("value_changed", self.handle_change_value, cardnum, rownum, item)


(where cardnum, rownum, item can be thought of as a 3 dimensional array)

I want to be able change the value of each 'item' to a value by setting the corresponding varuable to a certain value.

I know that there is something similar in Tkinter, where a widget can be attached to a variable, is there any equivalent in (py)GTK 2.x?

Thank you and sorry for using the Tk-Word. :P

Ian

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to