Hi Petr,

I don't get it. From the examples I saw about packing, I saw that
self.window.add calls.
http://www.pygtk.org/pygtk2tutorial/sec-DetailsOfBoxes.html

So, how can I solve that? I mean, I don't understand, if those examples had
window.add and you are saying that it creates an empty window, then how were
those widdgets displated?


2011/9/12 Petr Kubánek <p...@kubanek.net>

> 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   pygtk@daa.com.au
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://faq.pygtk.org/
>
>
>


-- 
Regards,
Abhijeet Rastogi (shadyabhi)
http://www.google.com/profiles/abhijeet.1989
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to