Did I find the right examples for you? yes no

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

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/map.py   blenderpython(Download)
            if self.mapLocation == 'PANEL':
                self.handler1 = bpy.types.SpaceProperties.draw_handler_add(
                                   Map_load_callback,
                                   (self, context), 'WINDOW', 'POST_PIXEL')
            else:
    def activateBGLcallback(self, context):
        if self.mapLocation == 'PANEL':
            self.handler2 = bpy.types.SpaceProperties.draw_handler_add(
                                Draw_map_callback,
                                (self, context), 'WINDOW', 'POST_PIXEL')