[wxmpl] How to get coordinates from selected rectangle

Hi! I have a wxmpl.PlotPanel object with a cross-hair style cursor
(without the full screen crosshairs). When I select a rectangle w/ this
cursor it zooms in to that rectangle - great! Now, how do I get the
rectangle coordinates (preferably in data coords.) from the rectangle
selection event? Thanks!

DG

You can subscribe to region selection events using wxmpl.EVT_SELECTION, which is a wxPython event. See `demos/picking_points.py' for a detailed example.

Due to a failure of imagination you can currently have region selections zoom or emit events. If you need to do both it'll take some jiggery-pokery. Let me know if this is the case and I'll write something up.

Ken

ยทยทยท

On Mar 28, 2007, at 3:41 PM, David.L.Goldsmith@...259... wrote:

Hi! I have a wxmpl.PlotPanel object with a cross-hair style cursor
(without the full screen crosshairs). When I select a rectangle w/ this
cursor it zooms in to that rectangle - great! Now, how do I get the
rectangle coordinates (preferably in data coords.) from the rectangle
selection event? Thanks!