|
From: Christopher B. <Chr...@no...> - 2009-11-17 22:02:02
|
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 Chr...@no... |