Peter McGregor wrote: > The problem with those examples is, when I comment the following line (for > example in > http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_wx2.html): > > self.add_toolbar() # comment this out for no toolbar > > then I have no possibility to make the window react to mouse events.
Give wxMPL a try: http://agni.phys.iit.edu/~kmcivor/wxmpl/ It handles some, if not all, of this for you. However, you bring up a good point, unless you have missed something -- the code for the various interactive modes really should be separate from the toolbar that activates those modes. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [email protected] ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
