def __init__(self, parent, linked_base, width, *args, **kwargs): FontMapScroller.__init__(self, parent, linked_base, width, rect_select=True, *args, **kwargs) MouseControllerMixin.__init__(self, SelectMode)
def create_contents(self, parent): control = FontMapScroller(parent, self.task, size=(160, 500), command=ChangeByteCommand) return control
def process_left_up(self, evt): FontMapScroller.on_left_up( self.control, evt ) # can't use self.control directly because it overrides on_left_down
def process_left_down(self, evt): FontMapScroller.on_left_down( self.control, evt ) # can't use self.control directly because it overrides on_left_down self.display_coords(evt)
def create_control(cls, parent, linked_base): return FontMapScroller(parent, linked_base, size=(160,500), command=ChangeByteCommand)
def process_left_up(self, evt): FontMapScroller.on_left_up( self.canvas, evt ) # can't use self.canvas directly because it has an overridded method on_left_down
def __init__(self, *args, **kwargs): FontMapScroller.__init__(self, *args, **kwargs) MouseControllerMixin.__init__(self, SelectMode)