[pygtk] PyGTK Button Size Question

John Stowers john.stowers.lists at gmail.com
Wed Dec 9 23:49:15 WST 2009


> 
> 
> 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()





More information about the pygtk mailing list