aboutsummaryrefslogtreecommitdiff
path: root/sources.py
diff options
context:
space:
mode:
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',