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

Benjamin Kaplan benjamin.kaplan at case.edu
Fri May 6 22:48:40 EDT 2011


On May 6, 2011 7:05 PM, "Даниил Рыжков" <daniil.re at gmail.com> wrote:
>
> Sorry for my English (I could not find help in the Russian community)
> I'm trying to learn PyGTK and Glade. I made test window in Glade and
> saved it as "test.glade" (attached). Then I wrote script
> "test.py"(attached, http://pastebin.com/waKytam3). I tried to run it.
> While the script was executed, console did not show anything and
> window wasn't displayed. When I pressed CTRL+С console displayed
> trackback:
> ---
> CTraceback (most recent call last):
>  File "test.py", line 32, in <module>
>    gtk.main()
> KeyboardInterrupt
> ---
> So what am I doing wrong?
>

I haven't used gtk before, but is there a show method or something similar
you need, to actually make the window appear? The KeyboardInterrupt is
normal. That's how control-c works.
> --
> Best wishes,
> Daniil
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110506/cb8dbfd1/attachment-0001.html>


More information about the Python-list mailing list