What about:
self.window.add(something)
in the code? What you did is you created an empty window.
Also you can delete all .show() calls and replace this with:
self.window.show_all()
Petr
Abhijeet Rastogi píše v Po 12. 09. 2011 v 10:56 +0530:
> Hi guyz,
>
> I was following the tutorial to learn pygtk. I had this example
> http://www.pygtk.org/pygtk2tutorial/ch-ButtonWidget.html (buttons.py)
>
> So, I decided to add one more label at the bottom of already displayed
> button.
>
> So, I added
>
> # Create a text label
> label = gtk.Label("Label")
>
> And added a Vbox using
>
> # Creating a VBox
> self.superbox = gtk.VBox(False, 0)
>
> And the I packed everything in superbox and displayed & all I get is a
> tiny window with nothing in it.
>
> My complete script -> http://sprunge.us/VUYB
>
> Please guide me. It will just take a minute for people knowing about
> layouts.
>
>
> Regards,
> Abhijeet Rastogi (shadyabhi)
> http://www.google.com/profiles/abhijeet.1989
> _______________________________________________
> pygtk mailing list [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/