Browse Source

Make url list expand vertically

doc-issue-template
MrS0m30n3 10 years ago
parent
commit
3707de5ba7
1 changed files with 5 additions and 5 deletions
  1. 10
      youtube_dl_gui/mainframe.py

10
youtube_dl_gui/mainframe.py

@ -33,7 +33,7 @@ class MainFrame(wx.Frame):
''' Youtube-dlG main frame. ''' ''' Youtube-dlG main frame. '''
FRAME_SIZE = (700, 490) FRAME_SIZE = (700, 490)
TEXTCTRL_SIZE = (-1, 120)
TEXTCTRL_SIZE = (-1, -1)
BUTTONS_SIZE = (90, 30) BUTTONS_SIZE = (90, 30)
BUTTONS_SPACE = 80 BUTTONS_SPACE = 80
SIZE_20 = 20 SIZE_20 = 20
@ -92,8 +92,7 @@ class MainFrame(wx.Frame):
self._panel = wx.Panel(self) self._panel = wx.Panel(self)
self._url_text = self._create_statictext(self.URLS_LABEL) self._url_text = self._create_statictext(self.URLS_LABEL)
self._url_list = self._create_textctrl(wx.TE_MULTILINE | wx.TE_DONTWRAP,
self._on_urllist_edit)
self._url_list = self._create_textctrl(wx.TE_MULTILINE | wx.TE_DONTWRAP, self._on_urllist_edit)
self._download_btn = self._create_button(self.DOWNLOAD_LABEL, self._on_download) self._download_btn = self._create_button(self.DOWNLOAD_LABEL, self._on_download)
self._update_btn = self._create_button(self.UPDATE_LABEL, self._on_update) self._update_btn = self._create_button(self.UPDATE_LABEL, self._on_update)
@ -102,6 +101,7 @@ class MainFrame(wx.Frame):
self._status_list = ListCtrl(self.STATUSLIST_COLUMNS, self._status_list = ListCtrl(self.STATUSLIST_COLUMNS,
parent=self._panel, parent=self._panel,
style=wx.LC_REPORT | wx.LC_HRULES | wx.LC_VRULES) style=wx.LC_REPORT | wx.LC_HRULES | wx.LC_VRULES)
self._status_bar = self._create_statictext(self.WELCOME_MSG.format(__author__)) self._status_bar = self._create_statictext(self.WELCOME_MSG.format(__author__))
# Bind extra events # Bind extra events
@ -151,7 +151,7 @@ class MainFrame(wx.Frame):
vertical_sizer.AddSpacer(self.SIZE_10) vertical_sizer.AddSpacer(self.SIZE_10)
vertical_sizer.Add(self._url_text) vertical_sizer.Add(self._url_text)
vertical_sizer.Add(self._url_list, flag=wx.EXPAND)
vertical_sizer.Add(self._url_list, 1, wx.EXPAND)
vertical_sizer.AddSpacer(self.SIZE_10) vertical_sizer.AddSpacer(self.SIZE_10)
@ -163,7 +163,7 @@ class MainFrame(wx.Frame):
vertical_sizer.AddSpacer(self.SIZE_10) vertical_sizer.AddSpacer(self.SIZE_10)
vertical_sizer.Add(self._status_list, 1, wx.EXPAND)
vertical_sizer.Add(self._status_list, 2, wx.EXPAND)
vertical_sizer.AddSpacer(self.SIZE_5) vertical_sizer.AddSpacer(self.SIZE_5)

Loading…
Cancel
Save