Did I find the right examples for you? yes no

All Samples(11)  |  Call(8)  |  Derive(0)  |  Import(3)

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
 
            else:
                Sun.RiseSetOK = True
                sr = format_hms(Sun.Sunrise.time)
                ss = format_hms(Sun.Sunset.time)
                tsr = "Sunrise: " + sr
            else:
                Sun.RiseSetOK = True
                sr = format_hms(Sun.Sunrise.time)
                ss = format_hms(Sun.Sunset.time)
                tsr = "Sunrise: " + sr

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/map.py   blenderpython(Download)
import math
 
from . sun_calc import degToRad, format_hms
from . properties import Display, Sun
 
        fy = text_line(fx + 40, fy, True, vColor, str(Sun.SP.Day_of_year))
        fy = text_line(fx, fy, False, tColor, "Time: ")
        fy = text_line(fx + 40, fy, True, vColor, format_hms(Sun.SP.Time))
 
        if Sun.ShowRiseSet:
            fy -= 10
            fy = text_line(fx, fy, True, tColor, "Solar Noon:")
            fy = text_line(fx + 14, fy, True,  vColor,
                           format_hms(Sun.SolarNoon.time))
            if Sun.RiseSetOK:
                fy = text_line(fx + 40, fy, True, vColor,
                               format_hms(Sun.Sunrise.time))
            else:
                fy = text_line(fx + 40, fy, True, vColor, "--------")
            fy = text_line(fx, fy, False, tColor, " Set: ")
            if Sun.RiseSetOK:
                fy = text_line(fx + 40, fy, True, vColor,
                               format_hms(Sun.Sunset.time))

src/b/l/blenderpython-HEAD/scripts/addons_extern/sun_position/hdr.py   blenderpython(Download)
import math
 
from . sun_calc import degToRad, radToDeg, format_hms
from . properties import Display, Sun