[vtkusers] check for pending tk events

Sebastien BARRE sebastien.barre at kitware.com
Wed Jul 24 00:09:23 EDT 2002


At 7/23/2002 11:32 PM, David Gobbi wrote:
>On Wed, 24 Jul 2002 hhiraki at lab.nig.ac.jp wrote:
>
> > On Tue, 23 Jul 2002 12:00:48 -0400 (EDT), David Gobbi wrote:
> > > Hi All,
> > >
> > > I'm looking for a way to abort a render if a user interacts with the
> > > window, and the easiest way seems to be for the window's AbortCheck
> > > method to check if there are any tk events pending.
> > >
> > > Is there a way, either in raw tk or within the vtkTkRenderWidget, to
> > > check if there are events pending?  I've searched the tk documentation
> > > with no luck.
> > >
> >
> > How about vtkRenderWindow::GetEventPending()? Some Tcl examples
> > in VTK use this method.
>
>This method doesn't seem to work with when the window is from a
>vtkTkRenderWidget, or at least not in the examples I've tried.

It works, check Wrapping/Tcl/vtkinteraction.


--
Sebastien Barre




More information about the vtkusers mailing list