mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
Fix eventwatcher checkAll(check=False)
[None] button => uncheck all items
This commit is contained in:
@@ -249,7 +249,7 @@ class EventChooser(wx.Panel):
|
|||||||
def checkAll(self, check):
|
def checkAll(self, check):
|
||||||
self.doUpdate = False
|
self.doUpdate = False
|
||||||
for position in range(self.lb.GetCount()):
|
for position in range(self.lb.GetCount()):
|
||||||
self.lb.Check(position, True)
|
self.lb.Check(position, check)
|
||||||
index = self.lb.GetClientData(position)
|
index = self.lb.GetClientData(position)
|
||||||
self.watchList[index] = (self.watchList[index][0], check)
|
self.watchList[index] = (self.watchList[index][0], check)
|
||||||
self.lb.Refresh()
|
self.lb.Refresh()
|
||||||
|
|||||||
Reference in New Issue
Block a user