Re: [Chaco-users] issue with ImageInspectorTool...
by Fred other posts by this author
Aug 8 2007 6:40AM messages near this date
Re: [Chaco-users] issue with ImageInspectorTool...
|
Re: [Chaco-users] issue with ImageInspectorTool...
Peter Wang a écrit :
> On Aug 8, 2007, at 6:07 AM, fred wrote:
>
>
> > Before, to not display the inspector,
> > I was removing the overlay from overlays.
> > Thus, new one was created each time I pressed on 'p'.
> > BTW, is it the only way to proceed,
> > or can I play with the visible attribute to toggle on/off the
> > inspector ?
> >
>
> The image inspector overlay is automatically toggling the value of
> self.visible based on the values that it sees in the metadata.
>
Ok, so I misuse the visible attribute.
> Perhaps it should have two attributes to control visibility:
>
> 'visible': if False, then the overlay will not draw. if True, then
> the overlay draws based on the value of 'visible_when'.
>
> 'visible_when': Enum("always", "all data", "non-null")
> always: always renders the overlay box, even if there is no text
> string. The overlay should then have a min_bounds to indicate the
> minimum size.
> all data: only render when there is an image cell under the
> cursor. for NaNs, display "NaN"
> non-null: only render when the data under the cursor is not a NaN
>
>
>
It should be fine.
Cheers,
--
http://scipy.org/FredericPetit
_______________________________________________
Chaco-users mailing list
Chaco-users@[...].com
https://mail.enthought.com/mailman/listinfo/chaco-users
Thread:
Fred
Bryan Van de Ven
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Peter Wang
Fred
Fred
Fred
Fred
Fred
Bryan Van de Ven
Fred
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Bryan Van de Ven
Fred
Peter Wang
Fred
Peter Wang
Fred
Fred
|