Matthew Turk | 17 Jul 00:53

TVTK Trait editors window size

Hi there,

I just ets co'd a fresh copy of "ets==2.8.0" earlier today, and I
found that editing Traits inside IVTK windows was no longer working --
specifically, it appears that the call to Fit() on line 226 of
enthought.traits.ui.wx_2.0.5/enthought/traits/ui/wx/ui_live.py is
shrinking the window such that only the scrollbar and button panel is
visible.  (Without this call, and

For instance, this:

>>> from enthought.tvtk.api import tvtk
>>> tvtk.LookupTable.configure_traits()

gives a dialog box like this:

http://www.slac.stanford.edu/~mturk/traits/lookuptable_fit.png

If I comment out the Fit() call mentioned above, the window is what
one would expect from an un-fit sizer:

http://www.slac.stanford.edu/~mturk/traits/lookuptable_nofit.png

And with a Layout() call in place of the Fit() it of course looks the
same as without the Fit().  (Also I should note that Fit() gives a
window that is the same size as GetEffectiveMinSize() returns, which
is to be expected.)

However, the traits editor windows for my own HasTraits objects (and
for the scene itself) are all properly sized, although they are also
maximizable windows, where the TVTK windows are not; in fact, in my
experimentation, this is restricted to TVTK traits editors, but I
cannot determine why.  As I mentioned in an unrelated email earlier
this morning, I've recently upgraded to wxPython 2.8.8.0.  And because
my earlier email exposed that my problems were my own fault, I am more
than ready to admit this could be an issue on my end.

Has anyone seen something like this before?  Could it be an
incompatible change in wxPython?  Or just a mess-up on my end?

Thanks!

-Matt

Gmane