Browse Source

Subtitles: replace wx.CheckListBox with wx.ListBox

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
f29cef262a
1 changed files with 9 additions and 1 deletions
  1. 10
      youtube_dl_gui/optionsframe.py

10
youtube_dl_gui/optionsframe.py

@ -225,6 +225,14 @@ class TabPanel(wx.Panel):
return checklistbox
def crt_listbox(self, choices, style=None):
if style is None:
listbox = wx.ListBox(self, choices=choices)
else:
listbox = wx.ListBox(self, choices=choices, style=style)
return listbox
class GeneralTab(TabPanel):
@ -400,7 +408,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_checklistbox(self.SUBS_LANG.values())
self.subtitles_lang_listbox = self.crt_listbox(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)")

Loading…
Cancel
Save