From 7bac05e63b0d1496f821cfc317caafbf8cde308a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Cort=C3=A9z?= Date: Wed, 8 Jun 2016 05:12:25 -0500 Subject: [PATCH] Modified some parameters in the visual look for lists --- src/wxUI/mainWindow.py | 1 + src/wxUI/tabs/home.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wxUI/mainWindow.py b/src/wxUI/mainWindow.py index 193a462..e9da930 100644 --- a/src/wxUI/mainWindow.py +++ b/src/wxUI/mainWindow.py @@ -26,6 +26,7 @@ class mainWindow(wx.Frame): def __init__(self): super(mainWindow, self).__init__(parent=None, id=wx.NewId(), title=application.name) + self.Maximize() self.makeMenu() self.panel = wx.Panel(self) self.sizer = wx.BoxSizer(wx.VERTICAL) diff --git a/src/wxUI/tabs/home.py b/src/wxUI/tabs/home.py index d306e51..fbb9b00 100644 --- a/src/wxUI/tabs/home.py +++ b/src/wxUI/tabs/home.py @@ -26,7 +26,7 @@ class homeTab(wx.Panel): sizer.Add(self.postBox, 0, wx.ALL, 5) self.create_list() sizer.Add(self.lbl, 0, wx.ALL, 5) - sizer.Add(self.list.list, 0, wx.EXPAND, 5) + sizer.Add(self.list.list, 1, wx.EXPAND, 5) self.SetSizer(sizer) self.SetClientSize(sizer.CalcMin()) @@ -35,11 +35,11 @@ class homeTab(wx.Panel): ev.Skip() def showMenu(self, ev): - if self.results.get_count() == 0: return + if self.list.get_count() == 0: return pub.sendMessage("show-menu", position=ev.GetPosition()) def showMenuByKey(self, ev): - if self.results.get_count() == 0: return + if self.list.get_count() == 0: return if ev.GetKeyCode() == wx.WXK_WINDOWS_MENU: pub.sendMessage("show-menu", position=self.results.list.GetPosition()) @@ -55,9 +55,9 @@ class audioTab(homeTab): def create_list(self): self.lbl = wx.StaticText(self, wx.NewId(), _(u"Mu&sic")) self.list = widgetUtils.list(self, *[_(u"Title"), _(u"Artist"), _(u"Duration")], style=wx.LC_REPORT) - self.list.set_windows_size(0, 80) - self.list.set_windows_size(1, 190) - self.list.set_windows_size(2, 40) + self.list.set_windows_size(0, 160) + self.list.set_windows_size(1, 380) + self.list.set_windows_size(2, 80) self.list.set_size() self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)