Hi John
    when I test your code ,I find that the button's height is ok,400px,but
the width is fill

    when I change vb = gtk.VBox() to vb = gtk.HBox()

    run your code ,then the width is 100px, ok,but the height is fill

    is it true I need to use gtk's another object but not HBox and VBox?
    which object is ok?

    Thank you
    Best regards




2009/12/9 John Stowers <[email protected]>

>
> >
> >
> > when I test all of these,the button always fill the window
>
> Like this,
>
> import gtk
>
> Window = gtk.Window(gtk.WINDOW_TOPLEVEL)
> Button=gtk.Button("Hello")
> vb = gtk.VBox()
> vb.pack_start(Button, False, False)
> Window.add(vb)
> Button.set_border_width(0)
> Button.set_size_request(100,400)
> Window.set_default_size(200,600)
> Window.show_all()
> gtk.main()
>
>
>
>
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to