I'd be inclined to use pygtk for your gui -- this will allow you
to have all your code in python (if i understand correctly the only C
code you have is the stuff from glade). There is an excellent pygtk faq here: http://www.async.com.br/faq/pygtk/index.py?req=index There is an excellent reference to pygtk here: http://www.pygtk.org/pygtk2reference/ The best (only?) way to work with glade and pygtk is to use libglade to use the glade xml to create a gui directly. All you have to do for that is: class App(object): def __init__(self) import gtk glade='the_xml_file_you_build_with_glade.glade') xml = gtk.glade.XML(glade) xml.signal_autoconnect() gtk.main() and just make your callbacks methods for the App object. The signal_autoconnect thing is smart --- looks for methods which match the ones you defined via glade. You will also find that writing pygtk code directly (and leaving out glade altogether) is very easy once you get going. John saurabh wagh wrote:
|