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