Return to repo list

opet

Oblivion Proton .esp Tool
Return to HMagellan.com

commit 6726354265da2f4e46bf53f297cbc637b84a9121
parent 7fe4395d471ed7cbaea58aad9e3d9874dc1e9554
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Thu,  7 Jan 2021 18:40:00 -0600

slightly better size for listctrl

Diffstat:
Msrc/opet.py | 2+-
Msrc/wxcustom.py | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/opet.py b/src/opet.py @@ -105,7 +105,7 @@ class OPETFrame(wx.Frame): self.load_order = self.manager.esp_tool.get_load_order_list(os.path.expanduser(self.manager.filer.get_environment()["OblivionDataPath"])) # Construct esp list - self.esp_list_ctrl = wxcustom.ESPListCtrl(self) + self.esp_list_ctrl = wxcustom.ESPListCtrl(self, size = (500, 400)) index = 0 for e in self.load_order: entry = ["", index, e, self.espjson["comments"][e] if e in self.espjson["comments"] else ""] diff --git a/src/wxcustom.py b/src/wxcustom.py @@ -19,10 +19,10 @@ class ESPListCtrl(wx.ListCtrl, listctrl.TextEditMixin): enabled and also their load order. """ - def __init__(self, manager): + def __init__(self, manager, size = (400, 300)): # Parent initialization - wx.ListCtrl.__init__(self, manager, style = wx.LC_REPORT) + wx.ListCtrl.__init__(self, manager, size = size, style = wx.LC_REPORT) listctrl.TextEditMixin.__init__(self) # Set values