示例#1
0
 def __init__(self, hm=None, **kwargs):
     MultiSpinOptionBox.__init__(self, ':', (
         HourField(),
         Z60Field(),
     ), **kwargs)
     if hm == None:
         hm = localtime()[3:5]
     self.set_value(hm)
示例#2
0
文件: date.py 项目: ilius/starcal
 def __init__(self, date=None, **kwargs):
     MultiSpinOptionBox.__init__(self, "/", (
         YearField(),
         MonthField(),
         DayField(),
     ), **kwargs)
     if date is None:
         date = localtime()[:3]
     self.set_value(date)
示例#3
0
	def __init__(self, hm=None, **kwargs):
		MultiSpinOptionBox.__init__(
			self,
			':',
			(
				HourField(),
				Z60Field(),
			),
			**kwargs
		)
		if hm==None:
			hm = localtime()[3:5]
		self.set_value(hm)
示例#4
0
文件: date.py 项目: greyzero/starcal
 def __init__(self, date=None, **kwargs):
     MultiSpinOptionBox.__init__(
         self,
         '/',
         (
             YearField(),
             MonthField(),
             DayField(),
         ),
         **kwargs
     )
     if date==None:
         date = localtime()[:3]
     self.set_value(date)