[pygtk] GUI design question / palette and horizontal panes

skip at pobox.com skip at pobox.com
Sat Mar 29 11:56:04 WST 2008


    Mark> I would like to like to have three horizontal panes likes you
    Mark> often see in IDE or in glade itself. I can't seem to figure out
    Mark> how to accomplish this? Do I simply add another horizontal pane
    Mark> into one of the positions of a horizontal pane?

Yeah, I think so.  At one point (a long time ago) I did something with an
hbox (I think, maybe it was a table) all within Python.  I laid it out
window-button-window-button-window left-to-right and tracked the mouse drag
movement on the buttons using that to resize the neighboring windows.  I
used the image from a grab handle as the image of the very thin buttons to
make it all look more-or-less like Gtk built it.  It's not a terribly
elegant solution, but you should be able to hide all the ugly in a class.

-- 
Skip Montanaro - skip at pobox.com - http://www.webfast.com/~skip/


More information about the pygtk mailing list