commit c9f82c182c5bc2c40d3a8dddc6b6ac0e3009a756
parent 69afb1f04f3621f2b2fc8f570406d3cfc2790149
Author: Erik Letson <hmagellan@hmagellan.com>
Date: Thu, 7 Jan 2021 17:48:02 -0600
checkbox now works on selected rows
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/tools.py b/src/tools.py
@@ -10,7 +10,6 @@ import os, sys
#####################
# Section 1 - Tools #
#####################
-
class DataPackTool(object):
"""
Encapsulates the functionality of OPET
diff --git a/src/wxcustom.py b/src/wxcustom.py
@@ -41,5 +41,7 @@ class ESPListCtrl(wx.ListCtrl, listctrl.TextEditMixin):
def OnBeginLabelEdit(self, event):
if event.GetColumn() == 0:
event.Veto()
+ fi = self.GetFocusedItem()
+ self.CheckItem(fi, not self.IsItemChecked(fi))
else:
event.Skip()