Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19171
| Date | 2012-01-20 16:21 -0500 |
|---|---|
| From | Adam Tauno Williams <awilliam@whitemice.org> |
| Subject | Re: Extending PyGTK widgets with Glade |
| References | <e9adnWKVkcvkBYTSnZ2dnUVZ_hudnZ2d@giganews.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4899.1327094468.27778.python-list@python.org> (permalink) |
Quoting Richard Carlson <rcarlson.cs@gmail.com>:
> I'm working on a program using PyGTK and Glade. I create a glade XML file
> using Glade Designer and then load widgets like this:
> class MyDialog:
> def __init__(self):
> self.dialog = gtk.glade.XML(self.GLADEFILE).get_widget
> ("dialog.xml")
> I think it would be better if I extended the Dialog class, but I can't
> figure out how to do it. I'd like to do something like this:
> class MyDialog(gtk.Dialog):
> def __init__(self):
> self = gtk.glade.XML(self.GLADEFILE).get_widget("example_dialog")
>
> Can someone point me in the right direction?
There is some documentation about this around somewhere; but I don't
recall offhand. In any case you will probably get a good answer if
you ask on the pygtk maillist.
<http://www.daa.com.au/mailman/listinfo/pygtk>
Content on that list is pretty good.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Extending PyGTK widgets with Glade Richard Carlson <rcarlson.cs@gmail.com> - 2012-01-20 10:38 -0600 Re: Extending PyGTK widgets with Glade Adam Tauno Williams <awilliam@whitemice.org> - 2012-01-20 16:21 -0500
csiph-web