def __init__(self, *args, **kwargs): self.visuals = ordict() self.handlers = ordict() self.processors = ordict() self.bindings = [] self.viewbox = (None, None, None, None) self.constrain_ratio = None self.constrain_navigation = None self.display_fps = None self.activate3D = None self.antialiasing = None self.activate_grid = True self.show_grid = False self.activate_help = True self.animation_interval = None self.figsize = (GalryWidget.w, GalryWidget.h) self.toolbar = True self.autosave = None self.autodestruct = None self.pmclass = kwargs.pop('paint_manager', mgs.PlotPaintManager) self.imclass = kwargs.pop('interaction_manager', mgs.PlotInteractionManager) self.bindingsclass = kwargs.pop('bindings', mgs.PlotBindings) self.initialize(*args, **kwargs)
def __init__(self, *args, **kwargs): self.visuals = ordict() self.handlers = ordict() self.processors = ordict() self.bindings = [] self.viewbox = (None, None, None, None) self.constrain_ratio = None self.constrain_navigation = None self.display_fps = None self.activate3D = None self.antialiasing = None self.activate_grid = True self.show_grid = False self.activate_help = True self.momentum = False self.figsize = (GalryWidget.w, GalryWidget.h) self.toolbar = True self.autosave = None self.autodestruct = None self.pmclass = kwargs.pop('paint_manager', mgs.PlotPaintManager) self.imclass = kwargs.pop('interaction_manager', mgs.PlotInteractionManager) self.bindingsclass = kwargs.pop('bindings', mgs.PlotBindings) self.initialize(*args, **kwargs) if self.momentum: self.animation_interval = .01 else: self.animation_interval = None
def __init__(self): self.base_cursor = 'ArrowCursor' self.text = None self.binding = ordict() self.descriptions = ordict() self.initialize_default() self.initialize()
def __init__(self, parent): super(InteractionManager, self).__init__(parent) self.cursor = None self.prev_event = None self.processors = ordict() self.initialize_default(constrain_navigation=self.parent.constrain_navigation) self.initialize()
def __init__(self, parent): super(InteractionManager, self).__init__(parent) self.cursor = None self.prev_event = None self.processors = ordict() self.initialize_default( constrain_navigation=self.parent.constrain_navigation) self.initialize()
def __init__(self, *args, **kwargs): self.visuals = ordict() self.handlers = ordict() self.processors = ordict() self.bindings = [] self.viewbox = (None, None, None, None) self.constrain_ratio = None self.constrain_navigation = None self.display_fps = None self.activate3D = None self.antialiasing = None self.activate_grid = True self.activate_help = True self.animation_interval = None self.figsize = (GalryWidget.width, GalryWidget.height) self.pmclass = mgs.PlotPaintManager self.imclass = mgs.PlotInteractionManager self.bindingsclass = mgs.PlotBindings self.initialize(*args, **kwargs)