Beispiel #1
0
 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 = []
Beispiel #2
0
 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 = []
Beispiel #3
0
def _NoRubberBand(self, reg):
    debug.mainthreadTest()
    return rubberband.NoRubberBand()
Beispiel #4
0
def _NoRubberBand(self, reg):
    return rubberband.NoRubberBand()
Beispiel #5
0
 def deactivate(self):
     self.gfxwindow().setRubberband(rubberband.NoRubberBand())
     toolboxGUI.GfxToolbox.deactivate(self)