Hi Guys 
I'm very, very new to both Python and Glade and I'm not even sure if I
should be posting to this list. Anyway, here goes as I need help - even
a useful reference.

I'm working on a Win32 platform and have begun to create a python
program as follows:

#!/usr/bin/env python
import pygtk
pygtk.require("2.0")
import gtk
import sys
  
####################################
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> handles
####################################
class handles:
    def __init__(self):
        self.gladefile = "Bowls.glade"
        
        
    def on_quit_clicked(event):
        sys.exit(1)
        
    def on_tournament_destroy(event):
        sys.exit(1)
        
    def on_show_settings_clicked(event):
        pass


####################################
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> define main
####################################
class EventApp: 
    def __init__(self):
        # set the glade file
        builder = gtk.Builder()
        builder.add_from_file("Bowls.glade")
        self.window = builder.get_object("tournament")      
        builder.connect_signals(handles.__dict__)
        
####################################
#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> run application
####################################
if __name__ == '__main__':
    w = EventApp()
    w.window.show()
    gtk.main()

My simple question is: how do I reference a textfield [ example
'no_teams' ] when the button 'on_show_settings' is clicked. Say, print
it's contents.

Any help greatly appreciated. 
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to