def __init__(self, hm=None, **kwargs): MultiSpinButton.__init__(self, ':', ( HourField(), Z60Field(), ), **kwargs) if hm == None: hm = localtime()[3:5] self.set_value(hm)
def __init__(self, hm=None, **kwargs): MultiSpinOptionBox.__init__(self, ":", ( HourField(), Z60Field(), ), **kwargs) if hm is None: hm = localtime()[3:5] self.set_value(hm)
def __init__(self, hms=None, **kwargs): MultiSpinButton.__init__(self, ":", ( HourField(), Z60Field(), Z60Field(), ), **kwargs) if hms is None: hms = localtime()[3:6] self.set_value(hms)
def __init__(self, date_time=None, **kwargs): MultiSpinButton.__init__( self, ' ', ( ContainerField( '/', YearField(), MonthField(), DayField(), ), ContainerField( ':', HourField(), Z60Field(), Z60Field(), ), ), #StrConField('seconds'), **kwargs) if date_time == None: date_time = localtime()[:6] self.set_value(date_time)
def __init__(self, date_time=None, **kwargs): MultiSpinButton.__init__( self, " ", ( ContainerField( "/", YearField(), MonthField(), DayField(), ), ContainerField( ":", HourField(), Z60Field(), Z60Field(), ), ), #StrConField("seconds"), **kwargs) if date_time is None: date_time = localtime()[:6] self.set_value(date_time)