コード例 #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
ファイル: starcal.py プロジェクト: ubuntu-ir/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
コード例 #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))