Example #1
0
def loadConf():
    global version, prefVersion, activeCalTypes, inactiveCalTypes
    ###########
    loadModuleJsonConf(__name__)
    ###########
    try:
        version
    except NameError:
        prefVersion = ''
    else:
        prefVersion = version
        del version
    ###########
    try:
        calTypes.activeNames = activeCalTypes ## loaded from json config file
        calTypes.inactiveNames = inactiveCalTypes ## loaded from json config file
    except NameError:
        pass
    activeCalTypes = inactiveCalTypes = None
    calTypes.update()
Example #2
0
def loadConf():
    global version, prefVersion, activeCalTypes, inactiveCalTypes
    ###########
    loadModuleJsonConf(__name__)
    ###########
    try:
        version
    except NameError:
        prefVersion = ''
    else:
        prefVersion = version
        del version
    ###########
    try:
        calTypes.activeNames = activeCalTypes  ## loaded from json config file
        calTypes.inactiveNames = inactiveCalTypes  ## loaded from json config file
    except NameError:
        pass
    activeCalTypes = inactiveCalTypes = None
    calTypes.update()
Example #3
0
 def updateVar(self):
     calTypes.activeNames = [row[0] for row in self.activeTrees]
     calTypes.inactiveNames = [row[0] for row in self.inactiveTrees]
     calTypes.update()
Example #4
0
 def updateVar(self):
     calTypes.activeNames = [row[0] for row in self.activeTrees]
     calTypes.inactiveNames = [row[0] for row in self.inactiveTrees]
     calTypes.update()
Example #5
0
if shownCals:## just for compatibility
	mcalTypeParams = []
	wcalTypeParams = []
	calTypes.activeNames = []
	for item in shownCals:
		mcalTypeParams.append({
			'pos': (item['x'], item['y']),
			'font': list(item['font']),
			'color': item['color'],
		})
		wcalTypeParams.append({
			'font': list(item['font']),
		})
		calTypes.activeNames.append(calTypes.names[item['mode']])
	calTypes.update()



needRestartPref = {} ### Right place ????????
for key in (
	'locale_man.lang',
	'locale_man.enableNumLocale',
	'winTaskbar',
	'showYmArrows',
	'useAppIndicator',
):
	needRestartPref[key] = eval(key)

if menuTextColor is None:
	menuTextColor = borderTextColor