From d8a76e71de7dfa6692ffcb9d7a1a293d8f319157 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 22 Feb 2019 03:48:18 -0700 Subject: edit options --- sources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sources.py') 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', -- cgit v1.2.3