Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/f/p/fpdb-HEAD/pyfpdb/Aux_Hud.py   fpdb(Download)
    def button_press_left(self, widget, event, *args): #move window
        self.begin_move_drag(event.button, int(event.x_root), int(event.y_root), event.time)
 
    def button_press_middle(self, widget, event, *args): pass 
 
        elif event.button == 1:   # left button event -- drag the window
            try:
                self.begin_move_drag(event.button, int(event.x_root), int(event.y_root), event.time)
            except AttributeError:  # in case get_ancestor returns None
                pass

src/f/p/fpdb-chaz-HEAD/pyfpdb/Aux_Hud.py   fpdb-chaz(Download)
    def button_press_left(self, widget, event, *args): #move window
        self.begin_move_drag(event.button, int(event.x_root), int(event.y_root), event.time)
 
    def button_press_middle(self, widget, event, *args): pass 
 
        elif event.button == 1:   # left button event -- drag the window
            try:
                self.begin_move_drag(event.button, int(event.x_root), int(event.y_root), event.time)
            except AttributeError:  # in case get_ancestor returns None
                pass