Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4886

Re: PyGTK, Glade/libglade. What am I doing wrong?

References <BANLkTiksuTENPuU-Jyj8YJnOkdjSO=gzQA@mail.gmail.com> <BANLkTikwb6E_51YsukD5seH0y2xR2YG9jg@mail.gmail.com> <1304740062.2510.2.camel@cristian-desktop> <BANLkTikeBXWywcHPhc7YotEZ13my1PYoQQ@mail.gmail.com>
Date 2011-05-07 15:14 +1100
Subject Re: PyGTK, Glade/libglade. What am I doing wrong?
From Даниил Рыжков <daniil.re@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1284.1304741651.9059.python-list@python.org> (permalink)

Show all headers | View raw


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
--
Best wishes,
Daniil

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


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