Attached is a modification of the pythonic table module I posted last week.
Added to the mix now is a PyBox class (which subclasses PyTable). It
functions more-or-less like a Gtk[HV]Box, but it supports list-like access
as well as an append method, which is roughly analogous to a Gtk[HV]Box's
pack_start method.
The demo shows a problem I've been having for awhile. I converted the
various Gtk[HV]Box instances to PyBox instances and added a button labelled
"flip extent display", which when clicked changes the orientation of the box
holding the two GtkFrame widgets (and their embedded GtkHScales) from
horizontal to vertical and vice versa. The first time I press it, the
layout of the two frames changes correctly from horizontal to vertical. The
second time I press it the frames disappear but the scales don't change and
the orientation remains vertical. The third time I press it the layout
changes back to the original horizontal layout, modulo some minor (at this
point) size changes to the overall window. After that, the change from
horizontal to vertical and back follows the same "gotta click twice"
pattern.
Can someone running Gtk+/PyGtk 2.0 look at this? It's bugging the hell out
of me. I don't know if I'm doing something wrong or I've stumbled upon a
Gtk+ or PyGtk wart of some sort.
Thanks,
--
Skip Montanaro ([EMAIL PROTECTED])
http://www.mojam.com/
http://www.musi-cal.com/
table2.py