﻿from watchFaceParser.models.elements.common.clockHandElement import ClockHandElement

class HoursClockHandElement(ClockHandElement):
    def __init__(self, parameter, parent = None, name = None):
        super(HoursClockHandElement, self).__init__(parameter = parameter, parent = parent, name = name)

    def draw3(self, drawer, resources, state):
        assert(type(resources) == list)
        super(HoursClockHandElement, self).draw4(drawer, resources, state.getTime().hour % 12 + state.getTime().minute / 60., 12)

﻿from watchFaceParser.models.elements.common.clockHandElement import ClockHandElement

class HoursClockHandElement(ClockHandElement):
    def __init__(self, parameter, parent = None, name = None):
        super(HoursClockHandElement, self).__init__(parameter = parameter, parent = parent, name = name)

    def draw3(self, drawer, resources, state):
        assert(type(resources) == list)
        super(HoursClockHandElement, self).draw4(drawer, resources, state.getTime().hour % 12 + state.getTime().minute / 60., 12)
