def deactivate(self): debug.mainthreadTest() ## TODO: Should this call GfxToolbox.deactivate(self)? self.gfxwindow().removeMouseHandler() self.gfxwindow().setRubberband(rubberband.NoRubberBand()) for s in self.sb_callbacks: switchboard.removeCallback(s) self.sb_callbacks = []
def deactivate(self): debug.mainthreadTest() if self.active: toolboxGUI.GfxToolbox.deactivate(self) self.gfxwindow().removeMouseHandler() self.gfxwindow().setRubberband(rubberband.NoRubberBand()) for s in self.sb_callbacks: switchboard.removeCallback(s) self.sb_callbacks = []
def _NoRubberBand(self, reg): debug.mainthreadTest() return rubberband.NoRubberBand()
def _NoRubberBand(self, reg): return rubberband.NoRubberBand()
def deactivate(self): self.gfxwindow().setRubberband(rubberband.NoRubberBand()) toolboxGUI.GfxToolbox.deactivate(self)