[vtkusers] vtkTkRenderWidget.py, Enter, Leave
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Tue Dec 18 10:37:32 EST 2001
I've seen this behaviour with some tcl apps of mine under windows... its very annoying.
One way around it (in tcl anyway) is to use the "grab" command to direct all mouse related events to the new window. Another is just to use vtkRenderWindow instead of vtkTkRenderWidget.
I don't know about python but the default behaviour for a tcl/tk widget under windows is that you have to click on the widget to switch the focus to it rather just enter it. Maybe it should be this for vtkTkRenderWidget?
Goodwin
University College Dublin
----- Original Message -----
From: Miller, James V (CRD)
To: Vtk Users (E-mail)
Sent: Tuesday, December 18, 2001 2:13 PM
Subject: [vtkusers] vtkTkRenderWidget.py, Enter, Leave
vtkTkRenderWidget.py has two member functions Enter() and Leave() that manage the "focus" as the mouse enters and leaves a widget.
This is giving me problems when I open a new window in my app. The window appears and then is immediately sent to the background so my TkRenderWidget is "on top". This is rather disconcerting to my users to have a dialog pop up and immediately move behind the application.
Is the managing of the focus necessary in vtkTkRenderWidget? If not, I'd like to remove it. If people need it, then I will just subclass the widget in my application.
Jim Miller
_____________________________________
Visualization & Computer Vision
GE Corporate Research & Development
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301
millerjv at crd.ge.com <mailto:millerjv at crd.ge.com>
(518) 387-4005, Dial Comm: 8*833-4005,
Cell: (518) 505-7065, Fax: (518) 387-6981
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20011218/fd3d81f1/attachment.htm>
More information about the vtkusers
mailing list