aboutsummaryrefslogtreecommitdiff
path: root/output.py
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-12-24 01:36:46 -0700
committerMelody Horn <melody@boringcactus.com>2020-12-24 01:36:46 -0700
commitc3b486b598ab3b4f69ef9c7b2605a0ac85cb7d2a (patch)
tree3e2d30ee953e9d36a8ef656388bef34d2d333a76 /output.py
parentdc8449ff02c50370b3e04f2bbabeae4f22e71122 (diff)
downloadvidslice-c3b486b598ab3b4f69ef9c7b2605a0ac85cb7d2a.tar.gz
vidslice-c3b486b598ab3b4f69ef9c7b2605a0ac85cb7d2a.zip
stop creating console windows all the time
Diffstat (limited to 'output.py')
-rw-r--r--output.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/output.py b/output.py
index 82a106e..2c765ca 100644
--- a/output.py
+++ b/output.py
@@ -106,7 +106,7 @@ class OutputPanel(wx.Panel):
def run():
# noinspection PyArgumentList
proc = subprocess.Popen(args, stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
- text=True)
+ text=True, creationflags=subprocess.CREATE_NO_WINDOW)
while proc.poll() is None:
out_data = proc.stdout.readline()
if out_data != '':
@@ -120,7 +120,7 @@ class OutputPanel(wx.Panel):
def preview(code):
if code == 0:
out_file = self.file_text.GetValue()
- subprocess.Popen(['ffplay', '-autoexit', out_file])
+ subprocess.Popen(['ffplay', '-autoexit', out_file], creationflags=subprocess.CREATE_NO_WINDOW)
self.handle_run_pressed(_event, callback=preview)