[Chaco] multiple modes of scatter selection/dynamically changing list of Instances
Subject: [Chaco] multiple modes of scatter selection/dynamically changing list of Instances
Newsgroups: gmane.comp.python.enthought.devel
Date: 2009-07-04 01:04:14 GMT
I'm developing an app that uses Chaco, and I've encountered a few
problems that I'm not clear on how to solve:
1. One of the Chaco plots involves a bunch of scatterplot points, and
I would like to be able to give the user the option to use either the
RangeSelection tool, the LassoSelection tool, or the ScatterInspector
tools to select points that a later operation will be performed upon.
Is it possible to have all of these operating simultaneously? (e.g.
bound to different mouse buttons, or something like that?)
2. Once a set of points are selected, I would like the user to be able
to use a keystroke to perform operations on the points. I understand
how to set up Buttons or Events to do this, but is there a simple way
to bind events to keystrokes?
3. The app also involves having a number of plots (instances of a
HasTraits object) that are contained in a list... I would like to be
able to dynamically update the View of the main app object so that if
more instances are added to the list, it will dynamically add an extra
panel to a particular Group in the View (or show a special panel if
they all vanish). Right now I'm using the ListEditor with
use_notebook =True, which works OK, but I would like to be able to
have more than one of the list items visible at once, if possible. Do
I need to implement a special Handler, or something? I tried writing
a function that would generate a new View when the list is changed,
but I couldn't figure out how to get it to add items in the list. I
tried using Group(Item('lst.0',editor=IntanceEditor(),style=custom),Item('lst.0',editor=IntanceEditor(),style=custom)),
but that didn't work at all (the spaces where the Items were supposed
to be were empty and the UI didn't work at all).
(Continue reading)
RSS Feed