Did I find the right examples for you? yes no

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

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/ui_sun.py   blenderpython(Download)
from . properties import *
from . operators import *
from . sun_calc import Degrees, format_lat_long, degToRad, \
                       format_time, format_hms, Move_sun
 
            Sun.Selected_objects = bpy.context.selected_objects
            bpy.ops.object.select_all(action='DESELECT')
            Move_sun()
        else:
            self.report({'WARNING'}, "No objects selected")

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/operators.py   blenderpython(Download)
import bpy
import datetime
 
from . properties import *
from . sun_calc import Move_sun
    def callback(self, os, context):
        if Sun.SP.IsActive:
            if self.panel_changed():
                Move_sun()
        else:
def Frame_handler(context):
    Controller.panel_changed()
    Move_sun()