Hello everybody,

I already sent that post a few weeks ago. I know that is not a smart 
practise to repost something that has not been replied but it was sent 
in summertimes when the chances to get a reply is quite low !


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 may 
be 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 like the classical right-clicking event
 
   - 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


-- 
Eric Pellegrini
Calcul Scientifique
Institut Laue-Langevin
Grenoble, France


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to