예제 #1
0
파일: starcal.py 프로젝트: greyzero/starcal
 def statusIconUpdate(self, gdate=None, checkStatusIconMode=True):
     if checkStatusIconMode and self.statusIconMode < 1:
         return
     if gdate is None:
         gdate = localtime()[:3]
     if calTypes.primary==core.DATE_GREG:
         ddate = gdate
     else:
         ddate = core.convert(gdate[0], gdate[1], gdate[2], core.DATE_GREG, calTypes.primary)
     #######
     self.sicon.set_from_file(join(pixDir, 'starcal-24.png'))
     self.statusIconUpdateIcon(ddate)
     #######
     self.statusIconUpdateTooltip()
     return True
예제 #2
0
	def statusIconUpdate(self, gdate=None, checkStatusIconMode=True):
		if checkStatusIconMode and self.statusIconMode < 1:
			return
		if gdate is None:
			gdate = localtime()[:3]
		if calTypes.primary==core.DATE_GREG:
			ddate = gdate
		else:
			ddate = core.convert(gdate[0], gdate[1], gdate[2], core.DATE_GREG, calTypes.primary)
		#######
		self.sicon.set_from_file(join(pixDir, 'starcal-24.png'))
		self.statusIconUpdateIcon(ddate)
		#######
		self.statusIconUpdateTooltip()
		return True
예제 #3
0
 def changeMode(self, mode):
     curMode = self.rule.getMode()
     if mode != curMode:
         y, m, d = self.get_value()
         self.set_value(core.convert(y, m, d, curMode, mode))
예제 #4
0
파일: date.py 프로젝트: greyzero/starcal
 def changeMode(self, mode):
     curMode = self.rule.getMode()
     if mode!=curMode:
         y, m, d = self.get_value()
         self.set_value(core.convert(y, m, d, curMode, mode))