Skip to content

Commit

Permalink
try parent instead of sibling method
Browse files Browse the repository at this point in the history
  • Loading branch information
seanbudd committed Mar 16, 2021
1 parent 11017de commit c59e874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/gui/configProfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def __init__(self, parent):
# Translators: The label of a button to manage triggers
# in the Configuration Profiles dialog.
# See the Configuration Profiles section of the User Guide for details.
triggersButton = wx.Button(profilesListBox, label=_("&Triggers..."))
triggersButton = wx.Button(self, label=_("&Triggers..."))
self.bindHelpEvent("ConfigProfileTriggers", triggersButton)
triggersButton.Bind(wx.EVT_BUTTON, self.onTriggers)

# Translators: The label of a checkbox in the Configuration Profiles dialog.
self.disableTriggersToggle = wx.CheckBox(profilesListBox, label=_("Temporarily d&isable all triggers"))
self.disableTriggersToggle = wx.CheckBox(self, label=_("Temporarily d&isable all triggers"))
self.bindHelpEvent("ConfigProfileDisablingTriggers", self.disableTriggersToggle)
self.disableTriggersToggle.Value = not config.conf.profileTriggersEnabled
sHelper.addItem(guiHelper.associateElements(triggersButton,self.disableTriggersToggle))
Expand Down
4 changes: 2 additions & 2 deletions source/gui/settingsDialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4148,10 +4148,10 @@ def wrapWithEventSkip(event):

bHelper = sHelper.addItem(guiHelper.ButtonHelper(orientation=wx.HORIZONTAL))
# Translators: The label for a button in the Symbol Pronunciation dialog to add a new symbol.
addButton = bHelper.addButton(changeSymbolBox, label=_("&Add"))
addButton = bHelper.addButton(self, label=_("&Add"))

# Translators: The label for a button in the Symbol Pronunciation dialog to remove a symbol.
self.removeButton = bHelper.addButton(changeSymbolBox, label=_("Re&move"))
self.removeButton = bHelper.addButton(self, label=_("Re&move"))
self.removeButton.Disable()

addButton.Bind(wx.EVT_BUTTON, self.OnAddClick)
Expand Down

0 comments on commit c59e874

Please sign in to comment.