From ebf47b8ff35309b03e5d5403f21162e6859b5dfe Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Wed, 21 Sep 2016 13:32:49 +0300 Subject: [PATCH] Make path & videoformat boxes read-only --- youtube_dl_gui/mainframe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index b7596b8..64eaa10 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -233,8 +233,8 @@ class MainFrame(wx.Frame): self._folder_icon = self._create_static_bitmap("folder_32px.png") - self._path_combobox = ExtComboBox(self._panel, 5) - self._videoformat_combobox = ExtComboBox(self._panel, choices=self._video_formats.values()) + self._path_combobox = ExtComboBox(self._panel, 5, style=wx.CB_READONLY) + self._videoformat_combobox = ExtComboBox(self._panel, choices=self._video_formats.values(), style=wx.CB_READONLY) self._download_text = self._create_statictext(self.DOWNLOAD_LIST_LABEL) self._status_list = ListCtrl(self.STATUSLIST_COLUMNS,