Hi.
I'm trying the paned widget and let me know how I can change the size of
its panels. I've tried the following code:
#!/usr/bin/env python
import gtk
class Pane:
def __init__(self):
window = gtk.Window()
window.set_default_size(400,400)
pane = gtk.HPaned()
pane.set_position(200)
label1 = gtk.Label("Label 1")
label2 = gtk.Label("Label 2")
pane.add1(label1)
pane.add2(label2)
window.connect("destroy", lambda w: gtk.main_quit())
window.add(pane)
window.show_all()
Pane()
gtk.main()
This code works, but if I get the instructions:
window.set_default_size(400,400)
and adding
window.maximize()
The method set_position () not working.
I tried to use pack() rather than add(), but I only managed to focus the
dicision between the two panels, using options resize and shrink).
What am I doing wrong?,I need to refresh the window when this is
maximized?
Thanks in advance.
Regards.
Cristian
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/