From 1ab406214c10015ec5a127aca1f4a9a904e429e3 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sat, 15 Oct 2016 19:39:44 +0300 Subject: [PATCH] Update twodict code --- youtube_dl_gui/mainframe.py | 2 +- youtube_dl_gui/optionsframe.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index bc2b3d5..60cf1b7 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -265,7 +265,7 @@ class MainFrame(wx.Frame): self._folder_icon = self._create_static_bitmap(self._bitmaps["folder"]) self._path_combobox = ExtComboBox(self._panel, 5, style=wx.CB_READONLY) - self._videoformat_combobox = ExtComboBox(self._panel, choices=VIDEO_FORMATS.values(), style=wx.CB_READONLY) + self._videoformat_combobox = ExtComboBox(self._panel, choices=list(VIDEO_FORMATS.values()), style=wx.CB_READONLY) self._download_text = self._create_statictext(self.DOWNLOAD_LIST_LABEL) self._status_list = ListCtrl(self.STATUSLIST_COLUMNS, diff --git a/youtube_dl_gui/optionsframe.py b/youtube_dl_gui/optionsframe.py index 1d253c7..0261a7b 100644 --- a/youtube_dl_gui/optionsframe.py +++ b/youtube_dl_gui/optionsframe.py @@ -263,10 +263,10 @@ class GeneralTab(TabPanel): super(GeneralTab, self).__init__(*args, **kwargs) self.language_label = self.crt_statictext("Language") - self.language_combobox = self.crt_combobox(self.LOCALE_NAMES.values()) + self.language_combobox = self.crt_combobox(list(self.LOCALE_NAMES.values())) self.filename_format_label = self.crt_statictext("Filename format") - self.filename_format_combobox = self.crt_combobox(OUTPUT_FORMATS.values()) + self.filename_format_combobox = self.crt_combobox(list(OUTPUT_FORMATS.values())) self.filename_custom_format = self.crt_textctrl() self.filename_opts_label = self.crt_statictext("Filename options") @@ -347,7 +347,7 @@ class FormatsTab(TabPanel): self.keep_video_checkbox = self.crt_checkbox("Keep original video") self.audio_quality_label = self.crt_statictext("Audio quality") - self.audio_quality_combobox = self.crt_combobox(self.AUDIO_QUALITY.values()) + self.audio_quality_combobox = self.crt_combobox(list(self.AUDIO_QUALITY.values())) self._set_layout() @@ -427,7 +427,7 @@ class DownloadsTab(TabPanel): self.subtitles_label = self.crt_statictext("Subtitles") self.subtitles_combobox = self.crt_combobox(self.SUBS_CHOICES) - self.subtitles_lang_listbox = self.crt_listbox(self.SUBS_LANG.values()) + self.subtitles_lang_listbox = self.crt_listbox(list(self.SUBS_LANG.values())) self.subtitles_opts_label = self.crt_statictext("Subtitles options") self.embed_subs_checkbox = self.crt_checkbox("Embed subtitles into video file (mp4 ONLY)") @@ -445,10 +445,10 @@ class DownloadsTab(TabPanel): self.filesize_min_label = self.crt_statictext("Min") self.filesize_min_spinctrl = self.crt_spinctrl() - self.filesize_min_sizeunit_combobox = self.crt_combobox(self.FILESIZES.values()) + self.filesize_min_sizeunit_combobox = self.crt_combobox(list(self.FILESIZES.values())) self.filesize_max_label = self.crt_statictext("Max") self.filesize_max_spinctrl = self.crt_spinctrl() - self.filesize_max_sizeunit_combobox = self.crt_combobox(self.FILESIZES.values()) + self.filesize_max_sizeunit_combobox = self.crt_combobox(list(self.FILESIZES.values())) self._set_layout()