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

Prabhu Ramachandran | 19 Jul 19:39

Re: TVTK Trait editors window size

Matthew Turk wrote:
> 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:

The above is actually not possible I guess you meant this:

tvtk.LookupTable().configure_traits()

In any case, this works fine for me with ets-2.8.0 on the Mac with

In [5]: wx.__version__
Out[5]: '2.8.7.1'

cheers,
prabhu
Gael Varoquaux | 20 Jul 08:37

Re: TVTK Trait editors window size

On Sat, Jul 19, 2008 at 11:09:46PM +0530, Prabhu Ramachandran wrote:
> > gives a dialog box like this:

> The above is actually not possible I guess you meant this:

> tvtk.LookupTable().configure_traits()

> In any case, this works fine for me with ets-2.8.0 on the Mac with

> In [5]: wx.__version__
> Out[5]: '2.8.7.1'

I can confirm that with the latest released mayavi, and with mayavi in
trunk, the bug seems fixed.

If you are running ubuntu, the excellent ubuntu maintainers are busy
backporting the latest release of mayavi2. It is undergoing QA but should
land in the backport repository very soon.

Cheers,

Gaël
Matthew Turk | 20 Jul 18:29

Re: TVTK Trait editors window size

Thanks, Prabhu and Gaël.  I'll keep my eyes on the backport repo and
keep experimenting!  If I come up with anything I'll post to the list.

-Matt

On Sat, Jul 19, 2008 at 11:37 PM, Gael Varoquaux
<gael.varoquaux@...> wrote:
> On Sat, Jul 19, 2008 at 11:09:46PM +0530, Prabhu Ramachandran wrote:
>> > gives a dialog box like this:
>
>> The above is actually not possible I guess you meant this:
>
>> tvtk.LookupTable().configure_traits()
>
>> In any case, this works fine for me with ets-2.8.0 on the Mac with
>
>> In [5]: wx.__version__
>> Out[5]: '2.8.7.1'
>
> I can confirm that with the latest released mayavi, and with mayavi in
> trunk, the bug seems fixed.
>
> If you are running ubuntu, the excellent ubuntu maintainers are busy
> backporting the latest release of mayavi2. It is undergoing QA but should
> land in the backport repository very soon.
>
> Cheers,
>
> Gaël
>
(Continue reading)


Gmane