-
Notifications
You must be signed in to change notification settings - Fork 50
/
settings.py
35 lines (24 loc) · 1.09 KB
/
settings.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
class Settings:
""" GuitarTuner global app configuration """
COMPILED_APP_MODE = False
""" general settings """
APP_NAME = "GuitarTuner"
VERSION = "3.2"
AUTHOR = "Tom Schimansky"
YEAR = "2021"
GITHUB_API_URL = "https://api.github.com/repos/TomSchimansky/GuitarTuner"
GITHUB_URL = "https://github.com/TomSchimansky/GuitarTuner"
GITHUB_URL_README = "https://github.com/TomSchimansky/GuitarTuner#readme"
STATISTICS_AGREEMENT = f"{APP_NAME} tracks how often the app is being opened.\n\n" + \
"Do you agree on sending this anonymous data?"
USER_SETTINGS_PATH = "/assets/user_settings/user_settings.json"
ABOUT_TEXT = "{} Version {} © {} {}".format(APP_NAME, VERSION, YEAR, AUTHOR)
CF_BUNDLE_IDENTIFIER = "com.{}.{}".format(AUTHOR, APP_NAME)
WIDTH = 450 # window size when starting the app
HEIGHT = 440
MAX_WIDTH = 600 # max window size
MAX_HEIGHT = 500
FPS = 60 # canvas update rate
CANVAS_SIZE = 300 # size of the audio-display
NEEDLE_BUFFER_LENGTH = 30
HITS_TILL_NOTE_NUMBER_UPDATE = 15