[vtkusers] RemoveObserver..

John Hunter jdhunter at ace.bsd.uchicago.edu
Tue Jan 20 13:19:35 EST 2004


>>>>> "John" == John Vard <jvard at tcd.ie> writes:

    John> Hi All, Quick question regarding the removal of an
    John> observer. In my case it's the removal of the
    John> LeftButtonPressEvent and LeftButtonReleaseEvent. I'm
    John> attempting to use the RemoveObserver(command*) but am unsure
    John> what to place as the <command>. Is there a number associated
    John> with the above events as placing the string
    John> "LeftButtonPressEvent" or "LeftButtonReleaseEvent" returns
    John> an error requesting an integer??  -- Regards John V


oid = o.AddObserver('InteractionEvent', move)

...blah blah...

o.RemoveObserver(oid)

JDH



More information about the vtkusers mailing list