Return to repo list

opet

Oblivion Proton .esp Tool
Return to HMagellan.com

commit d6ff7a17a25a07569f88a7c5e35d349dc21dfa63
parent 6726354265da2f4e46bf53f297cbc637b84a9121
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Thu,  7 Jan 2021 20:52:51 -0600

drawing apply button

Diffstat:
Msrc/opet.py | 19++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/opet.py b/src/opet.py @@ -54,8 +54,8 @@ class OPETFrame(wx.Frame): # Frame geometry self.main_panel = wx.Panel(self) - self.sizer = wx.BoxSizer(wx.VERTICAL) - self.main_panel.SetSizer(self.sizer) + self.main_sizer = wx.BoxSizer(wx.VERTICAL) + self.main_panel.SetSizer(self.main_sizer) def load(self): @@ -105,7 +105,13 @@ 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, size = (500, 400)) + self.sub_panel = wx.Panel(self.main_panel) + self.sub_panel_sizer = wx.BoxSizer(wx.VERTICAL) + self.sub_panel.SetSizer(self.sub_panel_sizer) + self.esp_list_panel = wx.Panel(self.sub_panel) + self.esp_list_sizer = wx.BoxSizer(wx.VERTICAL) + self.esp_list_panel.SetSizer(self.esp_list_sizer) + self.esp_list_ctrl = wxcustom.ESPListCtrl(self.esp_list_panel, 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 ""] @@ -113,6 +119,13 @@ class OPETFrame(wx.Frame): if e in self.enabled_list: self.esp_list_ctrl.CheckItem(index, True) index += 1 + self.esp_buttons_panel = wx.Panel(self.sub_panel) + self.esp_buttons_panel_sizer = wx.BoxSizer(wx.HORIZONTAL) + self.esp_buttons_panel.SetSizer(self.esp_buttons_panel_sizer) + self.esp_apply_button = wx.Button(self.esp_buttons_panel, label = "Apply") + self.sub_panel.SetSize(4, 4, 860, 800) + self.esp_list_panel.SetSize(4, 4, 550, 450) + self.esp_buttons_panel.SetSize(4, 430, 550, 200) def on_new_profile(self, event): pass