aboutsummaryrefslogtreecommitdiff
path: root/music_sampler/helpers.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-29 15:04:18 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-29 15:33:08 +0200
commit7d6df771f603e9642047264f967525422ef09e99 (patch)
tree6c7f4bb37323a5437b4d47d132f6349c168fc685 /music_sampler/helpers.py
parenta49f93078f02c611090132ce9cab6edca31a3f9b (diff)
downloadMusicSampler-7d6df771f603e9642047264f967525422ef09e99.tar.gz
MusicSampler-7d6df771f603e9642047264f967525422ef09e99.tar.zst
MusicSampler-7d6df771f603e9642047264f967525422ef09e99.zip
Add Unfocused overlay when focus is lost1.1.0
Diffstat (limited to 'music_sampler/helpers.py')
-rw-r--r--music_sampler/helpers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/music_sampler/helpers.py b/music_sampler/helpers.py
index 6acaba4..2249746 100644
--- a/music_sampler/helpers.py
+++ b/music_sampler/helpers.py
@@ -123,6 +123,10 @@ def parse_args():
123 action=ListDevicesAction, 123 action=ListDevicesAction,
124 help="List available sound devices" 124 help="List available sound devices"
125 ) 125 )
126 parser.add_argument("--no-focus-warning",
127 action='store_true',
128 help="Don't show warning when focus is lost"
129 )
126 parser.add_argument('--', 130 parser.add_argument('--',
127 dest="args", 131 dest="args",
128 help="Kivy arguments. All arguments after this are interpreted\ 132 help="Kivy arguments. All arguments after this are interpreted\
@@ -138,6 +142,7 @@ def parse_args():
138 Config.channels = args.channels 142 Config.channels = args.channels
139 Config.sample_width = args.sample_width 143 Config.sample_width = args.sample_width
140 Config.builtin_mixing = args.builtin_mixing 144 Config.builtin_mixing = args.builtin_mixing
145 Config.no_focus_warning = args.no_focus_warning
141 if args.music_path.endswith("/"): 146 if args.music_path.endswith("/"):
142 Config.music_path = args.music_path 147 Config.music_path = args.music_path
143 else: 148 else: