def __init__(self, logger=None, rgbmap=None, settings=None, bindmap=None, bindings=None): ImageViewZoom.__init__(self, logger=logger, rgbmap=rgbmap, settings=settings, bindmap=bindmap, bindings=bindings) CompoundMixin.__init__(self) CanvasMixin.__init__(self) DrawingMixin.__init__(self) for name in ('modified', ): self.enable_callback(name) #self.canvas.add(self) self.set_canvas(self) self.setSurface(self) self.ui_setActive(True) # for displaying modal keyboard state self.mode_obj = None bm = self.get_bindmap() bm.add_callback('mode-set', self.mode_change_cb) self.add_callback('configure', self._configure_cb)
def __init__(self, logger=None, settings=None, rgbmap=None, bindmap=None, bindings=None): ImageViewMock.ImageViewZoom.__init__( self, logger=logger, settings=settings, rgbmap=rgbmap, bindmap=bindmap, bindings=bindings ) CompoundMixin.__init__(self) CanvasMixin.__init__(self) DrawingMixin.__init__(self) # we are both a viewer and a canvas self.set_canvas(self, private_canvas=self)
def __init__(self, logger=None, settings=None, rgbmap=None, bindmap=None, bindings=None): ImageViewMock.ImageViewZoom.__init__(self, logger=logger, settings=settings, rgbmap=rgbmap, bindmap=bindmap, bindings=bindings) CompoundMixin.__init__(self) CanvasMixin.__init__(self) DrawingMixin.__init__(self) # we are both a viewer and a canvas self.set_canvas(self, private_canvas=self)
def __init__(self, logger=None, rgbmap=None, settings=None, bindmap=None, bindings=None): ImageViewAgg.ImageViewAgg.__init__(self, logger=logger, rgbmap=rgbmap, settings=settings) CompoundMixin.__init__(self) CanvasMixin.__init__(self) DrawingMixin.__init__(self) # we are both a viewer and a canvas self.set_canvas(self, private_canvas=self) # override self.defer_redraw = False
def __init__(self, logger=None, rgbmap=None, settings=None, bindmap=None, bindings=None): ImageViewCv.ImageViewCv.__init__(self, logger=logger, rgbmap=rgbmap, settings=settings) CompoundMixin.__init__(self) CanvasMixin.__init__(self) DrawingMixin.__init__(self) for name in ('modified', ): self.enable_callback(name) #self.canvas.add(self) self.set_canvas(self) self.setSurface(self) # override self.defer_redraw = False