- legacy graphic engine - made the mouse events work (click, release, doubleclick, dragging)
- legacy graphic engine - made the key events work (simple or with modifiers) - legacy graphic engine - made the mouse cursor work (enabled/disabled, position report); snapping is not moving the cursor yet
This commit is contained in:
@@ -152,10 +152,10 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas):
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
def vis_connect(self, event_name, callback):
|
||||
def graph_event_connect(self, event_name, callback):
|
||||
return getattr(self.events, event_name).connect(callback)
|
||||
|
||||
def vis_disconnect(self, event_name, callback=None):
|
||||
def graph_event_disconnect(self, event_name, callback=None):
|
||||
if callback is None:
|
||||
getattr(self.events, event_name).disconnect()
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user