Return to repo list

opet

Oblivion Proton .esp Tool
Return to HMagellan.com

commit e79e5e51be6815c0f06efc6adc126fb1c311a3fd
parent a5718f13448a11603957dcf4e3a65104a2d3ae73
Author: Erik Letson <hmagellan@hmagellan.com>
Date:   Thu,  7 Jan 2021 10:42:46 -0600

Append is the right method

Diffstat:
Mdefault/DefaultPlugins.json | 6+++++-
Msrc/opet.py | 8+++++---
2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/default/DefaultPlugins.json b/default/DefaultPlugins.json @@ -36,5 +36,9 @@ "z", "x", "y" - ] + ], + "comments" : { + "o" : "Some comment", + "z" : "another" + } } diff --git a/src/opet.py b/src/opet.py @@ -102,9 +102,11 @@ class OPETFrame(wx.Frame): index = 0 for e in espjson["discovered"]: - self.drag_list_ctrl.InsertItem(0, "") - self.drag_list_ctrl.SetItem(0, 1, str(index)) - self.drag_list_ctrl.SetItem(0, 2, e) + entry = ["0", index, e, espjson["comments"][e] if e in espjson["comments"] else ""] + self.drag_list_ctrl.Append(entry) + #self.drag_list_ctrl.InsertItem(0, "") + #self.drag_list_ctrl.SetItem(0, 1, str(index)) + #self.drag_list_ctrl.SetItem(0, 2, e) index += 1 def on_new_profile(self, event):