Did I find the right examples for you? yes no

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

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/map.py   blenderpython(Download)
                            if reg.type == 'WINDOW':
                                self.draw_region = reg
                                Display.refresh()
                                return True
                return False
        self.grab.offset.y = event.mouse_region_y
        self.lockCrosshair = True
        Display.refresh()
        return Map_function[action](event)
 
        elif event.type in ('RIGHTMOUSE', 'ESC',
            'T', 'D', 'X', 'Y', 'R', 'S', 'E', 'A', 'O', 'C', 'H', 'F1'):
            Display.refresh()
            return Key_function[event.type](event)
 
        elif self.action == 'CROSS':
            self.lockCrosshair = False
            Display.refresh()
 
        return {'RUNNING_MODAL'}
def key_LeftMouse(context, event):
    if event.value == 'PRESS':
        if Map.action is not None:
            Map.action = None
            Display.refresh()

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/hdr.py   blenderpython(Download)
                            if reg.type == 'WINDOW':
                                self.draw_region = reg
                                Display.refresh()
                                return True
                return False
        Sun.SP.BindToSun = True
        Sun.BindToSun = False
        Display.refresh()
 
    def make_dummy_file(self, file_name):
        self.grab.offset.y = event.mouse_region_y
        self.lockCrosshair = True
        Display.refresh()
        return Hdr_function[action](event)
 
                return val
        elif event.type in ('RIGHTMOUSE', 'ESC', 'H', 'F1'):
            Display.refresh()
            return Key_function[event.type](event)
 
        elif self.action == 'CROSS':
            self.lockCrosshair = False
            Display.refresh()
 
        return {'RUNNING_MODAL'}