aboutsummaryrefslogtreecommitdiff
path: root/sources.py
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2019-02-22 03:48:18 -0700
committerMelody Horn <melody@boringcactus.com>2019-02-22 03:48:18 -0700
commitd8a76e71de7dfa6692ffcb9d7a1a293d8f319157 (patch)
treed18de0ae7f3922e91319e62c34c1e9628fe4af7a /sources.py
parentff5f3f50d42193f6dcdedcd48403f8718a6fa757 (diff)
downloadvidslice-d8a76e71de7dfa6692ffcb9d7a1a293d8f319157.tar.gz
vidslice-d8a76e71de7dfa6692ffcb9d7a1a293d8f319157.zip
edit options
Diffstat (limited to 'sources.py')
-rw-r--r--sources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources.py b/sources.py
index b9c8e42..f15f3b3 100644
--- a/sources.py
+++ b/sources.py
@@ -82,11 +82,11 @@ class SourcesPanel(wx.Panel):
threading.Thread(target=download).start()
def handle_file_browse_pressed(self, _):
- dialog = wx.FileDialog(self, message="message")
+ dialog = wx.FileDialog(self, style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
if dialog.ShowModal() == wx.ID_OK:
self.file_text.SetValue(dialog.GetPath())
- def handle_file_changed(self, event):
+ def handle_file_changed(self, _event):
result = subprocess.run([
'ffprobe', '-v', 'error', '-of', 'json',
'-show_entries', 'format=start_time,duration:stream=index,codec_type,avg_frame_rate,width,height',