Hello everybody,
I would like to implement a popup menu on a mayavi scene embedded in a
wxPython panel.
To do so, I declare my binding using:
self.viewer.scene.interactor.add_observer("RightButtonPressEvent",
self.on_show_popupmenu)
When right-clicking on my scene and selecting one item of my popup menu,
the corresponding action is performed but I have too problems (that
maybe related):
- the scene is zooming in and/or out just like if the event of right
clicking skipped away from my popup method to be further processed by mayavi
- I do not have any control anymore on the mayavi toolbar buttons
and on the system button (the window can not be closed anymore) --> the
only way to retrieve the control is to focus out the mayavi window and
to focus back in.
would you have any idea how to solve this ?
thanks a lot
Eric
--
Eric Pellegrini
Calcul Scientifique
Institut Laue-Langevin
Grenoble, France
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
MayaVi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mayavi-users