[Tutor] sending data between classes
Antonio Diaz
minyie at hotmail.com
Tue May 22 22:36:16 CEST 2007
oh ok :)but how do i manage to use a variable on one class in another? exclass main () :.....def on_rotate_activate(self, widget, *args): window_rotate=edit_rotate() print window_rotate.value......class edit_rotate(wndBase): def my_response(self, widget, respuesta): if respuesta == gtk.RESPONSE_OK: #print self.wTree.get_widget("entry_rotate").get_text() value=int(self.wTree.get_widget("entry_rotate").get_text() else: widget.destroy()that doesnt work for me :S i want to show the value of "value" in the main class
_________________________________________________________________
Add some color. Personalize your inbox with your favorite colors.
www.windowslive-hotmail.com/learnmore/personalize.html?locale=en-us&ocid=TXT_TAGLM_HMWL_reten_addcolor_0507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070522/1f86c86d/attachment.htm
More information about the Tutor
mailing list