Пример #1
0
 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)
Пример #2
0
 def create_contents(self, parent):
     control = FontMapScroller(parent,
                               self.task,
                               size=(160, 500),
                               command=ChangeByteCommand)
     return control
Пример #3
0
 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
Пример #4
0
 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)
Пример #5
0
 def create_control(cls, parent, linked_base):
     return FontMapScroller(parent, linked_base, size=(160,500), command=ChangeByteCommand)
Пример #6
0
 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
Пример #7
0
 def __init__(self, *args, **kwargs):
     FontMapScroller.__init__(self, *args, **kwargs)
     MouseControllerMixin.__init__(self, SelectMode)