# -*- coding: utf-8 -*- r""" ====================================================================================== frigcal_configs.py: optional user-provided configuration settings. Code simple Python assignments in this file to customize your frigcal's appearance and behavior. Your settings will be loaded at frigcal startup. See frigcal_configs_base.py for the full set of options you can customize by reassigning names here, along with their defaults and documentation. DETAILS: This file is shipped in UTF-8 Unicode and Windows or Unix end-line format; see UserGuide.html's "Using the Program" => "Configurations File" section. In version 2.0+, EDIT THIS FILE for all user-defined customizations, instead of changing the frigcal_configs_base.py base file in-place. This file (not the base) is imported by frigcal at startup, and imports "*" from the base file initially to load preset "factory" defaults. Any assignments you code here will override (i.e., replace) the corresponding default assignments in the base file automatically. Your customizations here will also be immune to changes in the base file when upgrading to new frigcal versions, as long as you save your version of this file and restore it in the new version after installation. Any errors in this file are still reported by both GUI popup and console message as before. See the frigcal_configs_base.py base file in this folder for setting examples, settings available, and all settings documentation. Coding note: the initial "from ... *" here could be avoided by having the base file import this (instead of vice versa), but making this explicit is better than not. ====================================================================================== """ import sys, os # for platform, etc. # Load the base file's defaults first (don't delete this line!) from frigcal_configs_base import * # ----User-defined customizations of frigcal_configs_base.py follow---- # Code your assignments here; they'll be immune to base-file changes on upgrades. # To enable example code lines and blocks, remove the "#" character at the # start of lines, and remove the r""" and """ markers above and below blocks. """ rootbg = '#A28264' # remove the 3 quotes above and below to activate code daysbg = 'wheat' # basic settings include colors, fonts, etc. """ # Calendar-files folder examples (else Calendars subfolder in install/unzip folder). # Need not be set if using the default Calendars subfolder in install/unzip folder. # These are examples of the sorts of paths that can be used for your calendar storage. r""" if RunningOnMacOS: # Source code in downloads folder (default) #icspath = '/Users/me/Downloads/Frigcal--source/Calendars # App in Applications folder (default) #icspath = '/Applications/Frigcal.app/Contents/Resources/Calendars' # Other folder outside app and source folders icspath = '/Users/me/MY-STUFF/Code/frigcal/frigcal3.0/Calendars' elif RunningOnWindows: # Souce code in downloads folder (default) #icspath = r'\Users\me\Downloads\Frigcal--source/Calendars # Executable in downloads folder (default) #icspath = r'\Users\me\Downloads\Frigcal--Windows\Frigcal\Calendars' # Other folder outside app and source folders icspath = r'\Users\me\Desktop\MY-STUFF\Code\frigcal\frigcal3.0\Calendars' elif RunningOnLinux: # Source code in downloads folder (default), or any other accessible # icspath = '/home/me/Downloads/Frigcal--source/Calendars' # Other folder outside app and source folders icspath = '/home/me/Desktop/MY-STUFF/Code/frigcal/frigcal3.0/Calendars' elif RunningOnAndroid: # Source code in downloads folder (default) #icspath = '/sdcard/Download/Frigcal--source/Calendars' # Other shared-storage folder (/sdcard==/storage/emulated/0) icspath = '/sdcard/MY-STUFF/Code/frigcal/frigcal3.0/Calendars' """ # And many more... see frigcal_configs_base.py for settings you can tweak here