Files
SplitNotes/config.py
T
joelnir d2623985fb Bug Fixes
Committing some bugfixes and addition of update_GUI function. This
function is not yet implemented in the rest of the project.
2016-01-03 13:55:20 +01:00

51 lines
1.1 KiB
Python

#CONFIG FILE WITH CONSTANTS
DEBUG = True
#Livesplit connection
HOST = "localhost"
PORT = 16834
#In network communication, time out after this time. (in seconds)
COM_TIMEOUT = 0.5
#Possible commands to send to LiveSplit
LS_COMMANDS = {
"best_possible": "getbestpossibletime\r\n",
"cur_split_index": "getsplitindex\r\n",
"cur_split_name": "getcurrentsplitname\r\n"
}
#Default Window Size
DEFAULT_WINDOW = {"WIDTH": 400, "HEIGHT": 300, "TITLE": "SplitNotes"}
#Color Scheme
COLOR_SCHEME = {}
#Default Welcome Message
DEFAULT_MSG = "Right Click to Open Notes."
#Update time for polling livesplit and other actions (in seconds)
POLLING_TIME = 0.5
#file names and path of icons
ICON_FOLDER = "resources"
ICONS= {"GREEN": "green.png", "RED": "red.png"}
#Popup menu options
MENU_OPTIONS = {
"SINGLE": "Set Single Layout",
"DOUBLE": "Set Double Layout",
"LOAD": "Load Notes"
}
#Error messages
ERRORS = {"NOTES_EMPTY": ("Error", "Notes empty or can not be loaded!")}
#Max file size for notes
MAX_FILE_SIZE = 1000000000 #1 Giga-Byte
#TO be added to title to alert user that timer is running
RUNNING_ALERT = "RUNNING"