- Gerber Editor: finished the selection on canvas; should be used as an template for the other Editors
- Gerber Editor: finished the Copy, Aperture Add, Buffer, Scale, Move including the Utility geometry - Trying to fix bug in Measurement Tool: the mouse events don't disconnect
This commit is contained in:
@@ -148,8 +148,11 @@ class PlotCanvas(QtCore.QObject):
|
||||
def vis_connect(self, event_name, callback):
|
||||
return getattr(self.vispy_canvas.events, event_name).connect(callback)
|
||||
|
||||
def vis_disconnect(self, event_name, callback):
|
||||
getattr(self.vispy_canvas.events, event_name).disconnect(callback)
|
||||
def vis_disconnect(self, event_name, callback=None):
|
||||
if callback is None:
|
||||
getattr(self.vispy_canvas.events, event_name).disconnect()
|
||||
else:
|
||||
getattr(self.vispy_canvas.events, event_name).disconnect(callback)
|
||||
|
||||
def zoom(self, factor, center=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user