Re: [Chaco-users] issue with ImageInspectorTool...
by Bryan Van de Ven other posts by this author
Aug 7 2007 10:01AM messages near this date
Re: [Chaco-users] issue with ImageInspectorTool...
|
Re: [Chaco-users] issue with ImageInspectorTool...
Fred,
The need to mouse click is certainly a bug, though after some digging it looks
like it might be a WX one, so I am not sure what, if anything can be done.
I traced through your code below, and interestingly enough, <ctrl> +i is getting
reported as the Tab character (!?) I'll see if I can find out why, but in the
mean time you can try a different key combination. I tried <ctrl> +x for
instance, and that worked.
Bryan
> I (alwasy) do clicking on my plot before hitting any key.
> I was aware of this.
> And was thinking it was the expected behavior, not a bug.
>
> BTW, I get some news.
>
> Here's my snippet code:
>
> class InspectorTool(AbstractOverlay):
>
> inspector_key = KeySpec('i', 'control')
>
> def _inspect_image(self):
> print 'blah'
>
> def normal_key_pressed(self, event):
> if self.inspector_key.match(event):
> self._inspect_image()
>
> "blah" is never displayed because self.inspector_key.match(event) is
> always False.
_______________________________________________
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
|