Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'def': 0.13; 'class,': 0.15; 'this:': 0.15; 'direction?': 0.16; 'from:addr:awilliam': 0.16; 'from:addr:whitemice.org': 0.16; 'from:name:adam tauno williams': 0.16; 'received:72.14.190': 0.16; 'received:72.14.190.87': 0.16; 'received:mail.wmmi.net': 0.16; 'received:wmmi.net': 0.16; 'subject:Glade': 0.16; 'subject:PyGTK': 0.16; 'header:In-Reply-To:1': 0.22; 'figure': 0.23; 'url:mailman': 0.26; 'load': 0.26; "i'm": 0.27; 'received:72.14': 0.29; 'class': 0.29; 'quoting': 0.30; 'skip:g 40': 0.30; 'url:listinfo': 0.30; 'url:au': 0.30; 'xml': 0.30; 'pretty': 0.30; 'good.': 0.32; 'list': 0.32; "can't": 0.32; 'it.': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'there': 0.33; 'richard': 0.34; 'someone': 0.34; 'probably': 0.35; 'something': 0.35; 'file': 0.35; 'charset:us-ascii': 0.36; 'but': 0.37; 'using': 0.37; 'skip:_ 10': 0.37; 'some': 0.38; 'subject:with': 0.38; 'think': 0.38; 'received:192': 0.38; "i'd": 0.39; 'point': 0.39; 'received:192.168.1': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'received:(horde framework)': 0.73 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on aleph.wmmi.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Date: Fri, 20 Jan 2012 16:21:04 -0500 From: Adam Tauno Williams To: python-list@python.org Subject: Re: Extending PyGTK widgets with Glade References: In-Reply-To: User-Agent: Internet Messaging Program (IMP) H4 (5.0.14) Content-Type: text/plain; charset=us-ascii; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327094468 news.xs4all.nl 6962 [2001:888:2000:d::a6]:51876 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19171 Quoting Richard Carlson : > 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. Content on that list is pretty good.