Skip to content

Commit

Permalink
wxGUI/gui_core: fix imagery create/edit group dialog deselect all maps (
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Jul 16, 2022
1 parent 310a193 commit 71b20db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions gui/wxpython/gui_core/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
StaticBox,
StaticText,
TextCtrl,
ListBox,
)


Expand Down Expand Up @@ -834,9 +835,12 @@ def _createDialogBody(self):

sizer = wx.BoxSizer(wx.HORIZONTAL)

self.gLayerBox = wx.ListBox(
parent=self.gListPanel, id=wx.ID_ANY, size=(-1, 150),
style=wx.LB_MULTIPLE | wx.LB_NEEDED_SB)
self.gLayerBox = ListBox(
parent=self.gListPanel,
id=wx.ID_ANY,
size=(-1, 150),
style=wx.LB_MULTIPLE | wx.LB_NEEDED_SB,
)
sizer.Add(self.gLayerBox, proportion=1, flag=wx.EXPAND)

self.addLayer = Button(self.gListPanel, id=wx.ID_ADD)
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 @@ -762,6 +762,10 @@ def SetToolTip(self, tip):
else:
wx.ListBox.SetToolTipString(self, tip)

def DeselectAll(self):
for i in range(self.GetCount()):
self.Deselect(i)


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

0 comments on commit 71b20db

Please sign in to comment.