Python and glade program - without errors but didn't display anything

anusha k anuhacks at gmail.com
Tue Sep 1 12:13:35 CEST 2009


hi,
You forgot to show the window.So in init method of py file and add

self.window = self.wTree.get_widget("window_calculator")
self.window.show()



Njoy the share of Freedom,
Anusha Kadambala
On Tue, Sep 1, 2009 at 2:04 PM, Raji Seetharaman <sraji.me at gmail.com> wrote:

> Hi all,
> i tried to develop a calculator using glade and python.
> When i run the script(python calculatorglade.py), i didn't get any errors.
> A calculator gui is supposed  to be displayed. But no window appears.
> With Ctrl + C, i killed it. I got the following response from the terminal
>
> ^CTraceback (most recent call last):
>   File "calculatorglade.py", line 106, in <module>
>     gtk.main()
> KeyboardInterrupt
>
> The Python program is available here, http://pastebin.com/m44d2c1cb
>
> The corresponding Glade xml file is available here,
> http://pastebin.com/m46beaac5
>
> What should i do to display the gui window?
>
> Regards
> Raji. S
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090901/7ed43d5d/attachment.html>


More information about the Python-list mailing list