Beispiel #1
0
 def __init__(self, hm=None, **kwargs):
     MultiSpinButton.__init__(self, ':', (
         HourField(),
         Z60Field(),
     ), **kwargs)
     if hm == None:
         hm = localtime()[3:5]
     self.set_value(hm)
Beispiel #2
0
 def __init__(self, hm=None, **kwargs):
     MultiSpinOptionBox.__init__(self, ":", (
         HourField(),
         Z60Field(),
     ), **kwargs)
     if hm is None:
         hm = localtime()[3:5]
     self.set_value(hm)
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)