-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.py
57 lines (48 loc) · 1.85 KB
/
defaults.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env python3
"""Defaults
This module contains constants for various application defaults. They are provided here as a
central location for tweaking.
"""
import os
from PyQt5.QtCore import QSize
import common
__copyright__ = '''
Copyright (C) 2018-2019 Andrew Chew
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
'''
__author__ = common.AUTHOR
__credits__ = common.CREDITS
__license__ = common.LICENSE
__version__ = common.VERSION
__maintainer__ = common.MAINTAINER
__email__ = common.EMAIL
__status__ = common.STATUS
RACE_NAME = '(race name here)'
RACE_NOTES_PLACEHOLDER_TEXT = 'Add notes here...'
FIELD_NAME = 'default'
START_TIME_FROM_NOW_SECS = 300 # 5 minutes
START_TIME_INTERVAL_SECS = 60
DATETIME_FORMAT = 'h:mm:ss.zzz'
REFERENCE_CLOCK_DATETIME_FORMAT = 'yyyy-MM-dd @ h:mm:ss.zzz'
FIELD_TABLE_VIEW_SIZE = QSize(520, 600)
RACER_TABLE_VIEW_SIZE = QSize(1000, 800)
RESULT_TABLE_VIEW_SIZE = QSize(280, 400)
JOURNAL_TABLE_VIEW_SIZE = QSize(800, 600)
ALWAYS_ON_TOP = True
DIGITAL_CLOCK = True
WALL_TIMES = True
H24_WALL_TIMES = False
REQUESTS_TIMEOUT_SECS = 60
NTP_SERVER_NUM_CHECKS = 5
RESOURCES_FOLDER = 'resources'
SPLASH_GRAPHIC_FILE = os.path.join(RESOURCES_FOLDER, 'splash.jpg')
RESULT_INPUT_SOUND_EFFECT_FILE = os.path.join(RESOURCES_FOLDER, 'beep-short-01.wav')