Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4889
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe02.ams2.POSTED!00000000!not-for-mail |
|---|---|
| From | Alister Ware <alister.ware@ntlworld.com> |
| Subject | Re: PyGTK, Glade/libglade. What am I doing wrong? |
| Newsgroups | comp.lang.python |
| References | <BANLkTiksuTENPuU-Jyj8YJnOkdjSO=gzQA@mail.gmail.com> <BANLkTikwb6E_51YsukD5seH0y2xR2YG9jg@mail.gmail.com> <1304740062.2510.2.camel@cristian-desktop> <BANLkTikeBXWywcHPhc7YotEZ13my1PYoQQ@mail.gmail.com> <mailman.1284.1304741651.9059.python-list@python.org> |
| User-Agent | Pan/0.133 (House of Butterflies) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 46 |
| Message-ID | <097xp.16$_T5.11@newsfe02.ams2> (permalink) |
| NNTP-Posting-Host | 80.5.8.246 |
| X-Complaints-To | http://netreport.virginmedia.com |
| X-Trace | newsfe02.ams2 1304755900 80.5.8.246 (Sat, 07 May 2011 08:11:40 UTC) |
| NNTP-Posting-Date | Sat, 07 May 2011 08:11:40 UTC |
| Organization | virginmedia.com |
| Date | Sat, 07 May 2011 08:11:40 GMT |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4889 |
Show key headers only | View raw
On Sat, 07 May 2011 15:14:07 +1100, Даниил Рыжков wrote:
> Thanks, Cristian! It works.
>> List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk
> Thanks again. Subscribed :)
> 2011/5/7 craf <pyclutter@gmail.com>:
>> Hi.
>>
>> Try this:
>>
>> #!/usr/bin/env python
>>
>> import gtk.glade
>>
>> class TestPyGtk:
>> """This is an Hello World GTK application"""
>>
>> def __init__(self):
>>
>> #Set the Glade file
>> self.gladefile = "test.glade"
>> self.glade = gtk.glade.XML(self.gladefile)
>>
>> self.MainWindow = self.glade.get_widget('MainWindow')
>> self.MainWindow.show()
>> self.MainWindow.connect('destroy', lambda e:gtk.main_quit())
>>
>>
>>
>> TestPyGtk()
>> gtk.main()
>>
>> Regards.
>>
>> Cristian.
>>
>> List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk
you may also want to look at using gtk.builder instread as it is now the
prefered option.
--
The human mind ordinarily operates at only ten percent of its capacity
-- the rest is overhead for the operating system.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: PyGTK, Glade/libglade. What am I doing wrong? Даниил Рыжков <daniil.re@gmail.com> - 2011-05-07 15:14 +1100 Re: PyGTK, Glade/libglade. What am I doing wrong? Alister Ware <alister.ware@ntlworld.com> - 2011-05-07 08:11 +0000
csiph-web