Did I find the right examples for you? yes no

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

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/operators.py   blenderpython(Download)
                Sun.SP.IsActive = False
                Map.deactivate()
                Hdr.deactivate()
                return {'FINISHED'}
        else:
                        Sun.SP.ShowHdr = False
            elif Hdr.isActive:
                Hdr.deactivate()
 
            if Sun.SP.ShowNorth:
    def modal(self, context, event):
        if Hdr.view3d_area != context.area or not Sun.SP.ShowHdr:
            Hdr.deactivate()
            Display.refresh()
            return {'FINISHED'}
def Stop_all_handlers():
    North.deactivate()
    Map.deactivate()
    Hdr.deactivate()