Exemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        BitmapScroller.__init__(self, *args, **kwargs)

        p = get_image_path("icons/hand.ico")
        self.hand_cursor = wx.Cursor(p, wx.BITMAP_TYPE_ICO, 16, 16)
        p = get_image_path("icons/hand_closed.ico")
        self.hand_closed_cursor = wx.Cursor(p, wx.BITMAP_TYPE_ICO, 16, 16)
        self.forced_cursor = None
        self.set_mouse_mode(self.default_mouse_handler)  # dummy initial mouse handler
        self.default_pan_mode = SelectMode(self)
        self.batch = None
Exemplo n.º 2
0
 def process_left_up(self, evt):
     BitmapScroller.on_left_up(self.canvas, evt)  # can't use self.canvas directly because it has an overridded method on_left_down