Skip to content

Commit

Permalink
wxGUI/gui_core: fix Create or edit image group dialog Select all Chec…
Browse files Browse the repository at this point in the history
…kBox widget for selecting all items (#2514)
  • Loading branch information
tmszi committed Oct 27, 2022
1 parent 1f8d622 commit 4def194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gui/wxpython/gui_core/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,7 @@ def OnGSelAll(self, event):
if not check:
self.gLayerBox.DeselectAll()
else:
for item in range(self.subgListBox.GetCount()):
self.gLayerBox.Select(item)
self.gLayerBox.SelectAll()

event.Skip()

Expand Down
4 changes: 4 additions & 0 deletions gui/wxpython/gui_core/wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,10 @@ def DeselectAll(self):
for i in range(self.GetCount()):
self.Deselect(i)

def SelectAll(self):
for i in range(self.GetCount()):
self.Select(i)


class HyperlinkCtrl(HyperlinkCtrl_):
"""Wrapper around HyperlinkCtrl to have more control
Expand Down

0 comments on commit 4def194

Please sign in to comment.