Commit ff268772 authored by Stephen Thompson's avatar Stephen Thompson Committed by Stephen Thompson

Issue #17 added extra observers to widget

parent 52de983e
......@@ -62,6 +62,9 @@ class BARDOverlayApp(OverlayBaseApp):
self.vtk_overlay_window.AddObserver("KeyPressEvent",
self.key_press_event)
self.vtk_overlay_window.AddObserver("LeftButtonPressEvent",
self.mouse_event)
if not os.path.isdir(outdir):
os.mkdir(outdir)
......@@ -187,3 +190,8 @@ class BARDOverlayApp(OverlayBaseApp):
pointer_tip_location)
print("Pointer tip written to ",
os.path.join(tipoutdir, filename))
def mouse_event(self, _obj_not_used, _ev_not_used):
#print ( self.vtk_overlay_window.GetMousePos() )
print ( _ev_not_used.x(), _ev_not_used.y() )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment