From: Ken M. <mc...@ii...> - 2007-03-28 20:52:15
|
On Mar 28, 2007, at 3:41 PM, Dav...@no... 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! 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 |