Skip to content
Snippets Groups Projects
Commit 19a30365 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Fixed CheckBoxMessageDialog default button selection

parent c1350d80
No related branches found
No related tags found
No related merge requests found
...@@ -852,14 +852,13 @@ class CheckBoxMessageDialog(wx.Dialog): ...@@ -852,14 +852,13 @@ class CheckBoxMessageDialog(wx.Dialog):
self.__message.Wrap(self.GetSize().GetWidth()) self.__message.Wrap(self.GetSize().GetWidth())
yes = self.__yesButton yes = self.__yesButton
no = self.__noButton no = self.__noButton
cancel = self.__cancelButton cncl = self.__cancelButton
# TODO This does not work. if focus == 'yes': yes .SetDefault()
if focus == 'yes': yes .SetFocus() elif focus == 'no' and no is not None: no .SetDefault()
elif focus == 'no' and no is not None: no .SetFocus() elif focus == 'cancel' and cncl is not None: cncl.SetDefault()
elif focus == 'cancel' and cancel is not None: cancel.SetFocus()
self.SetSizer(self.__mainSizer) self.SetSizer(self.__mainSizer)
self.Layout() self.Layout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment