[pygtk] PyGTK Button Size Question
engine spot
enginespot at gmail.com
Thu Dec 10 00:02:40 WST 2009
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 <john.stowers.lists at gmail.com>
>
> >
> >
> > 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()
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20091210/f01f4cfe/attachment.htm
More information about the pygtk
mailing list