Skip to content

Commit 79af2fb

Browse files
committed
fix flake8 issues
1 parent 23ed95e commit 79af2fb

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

source/gui/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ def __init__(self, parent):
753753
self.startAfterLogonCheckBox.Disable()
754754
# Translators: The label of a checkbox in the Welcome dialog.
755755
showWelcomeDialogAtStartupText = _("&Show this dialog when NVDA starts")
756-
self.showWelcomeDialogAtStartupCheckBox = sHelper.addItem(wx.CheckBox(optionsBox, label=showWelcomeDialogAtStartupText))
756+
_showWelcomeDialogAtStartupCheckBox = wx.CheckBox(optionsBox, label=showWelcomeDialogAtStartupText)
757+
self.showWelcomeDialogAtStartupCheckBox = sHelper.addItem(_showWelcomeDialogAtStartupCheckBox)
757758
self.showWelcomeDialogAtStartupCheckBox.SetValue(config.conf["general"]["showWelcomeDialogAtStartup"])
758759
mainSizer.Add(optionsSizer, border=guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL)
759760
mainSizer.Add(self.CreateButtonSizer(wx.OK), border=guiHelper.BORDER_FOR_DIALOGS, flag=wx.ALL|wx.ALIGN_RIGHT)

source/gui/configProfiles.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ def __init__(self, parent):
4848

4949
#contains the profile list and activation button in vertical arrangement.
5050
changeProfilesSizer = wx.BoxSizer(wx.VERTICAL)
51-
item = self.profileList = wx.ListBox(profilesListBox,
52-
choices=[self.getProfileDisplay(name, includeStates=True) for name in self.profileNames])
51+
item = self.profileList = wx.ListBox(
52+
profilesListBox,
53+
choices=[self.getProfileDisplay(name, includeStates=True) for name in self.profileNames]
54+
)
5355
self.bindHelpEvent("ProfilesBasicManagement", self.profileList)
5456
item.Bind(wx.EVT_LISTBOX, self.onProfileListChoice)
5557
item.Selection = self.profileNames.index(config.conf.profiles[-1].name)

source/gui/settingsDialogs.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2206,7 +2206,7 @@ def makeSettings(self, settingsSizer):
22062206
# Translators: This is the label for a checkbox in the
22072207
# document formatting settings panel.
22082208
spellingErrorText = _("Spelling e&rrors")
2209-
self.spellingErrorsCheckBox = docInfoGroup.addItem(wx.CheckBox(docInfoBox,label=spellingErrorText))
2209+
self.spellingErrorsCheckBox = docInfoGroup.addItem(wx.CheckBox(docInfoBox, label=spellingErrorText))
22102210
self.spellingErrorsCheckBox.SetValue(config.conf["documentFormatting"]["reportSpellingErrors"])
22112211

22122212
# Translators: This is the label for a group of document formatting options in the
@@ -2561,7 +2561,7 @@ def __init__(self, parent):
25612561
# Translators: This is the label for a checkbox in the
25622562
# Advanced settings panel.
25632563
label = _("Use UI Automation to access Microsoft &Word document controls when available")
2564-
self.UIAInMSWordCheckBox=UIAGroup.addItem(wx.CheckBox(UIABox, label=label))
2564+
self.UIAInMSWordCheckBox = UIAGroup.addItem(wx.CheckBox(UIABox, label=label))
25652565
self.bindHelpEvent("AdvancedSettingsUseUiaForWord", self.UIAInMSWordCheckBox)
25662566
self.UIAInMSWordCheckBox.SetValue(config.conf["UIA"]["useInMSWordWhenAvailable"])
25672567
self.UIAInMSWordCheckBox.defaultValue = self._getDefaultValue(["UIA", "useInMSWordWhenAvailable"])
@@ -3120,8 +3120,8 @@ def makeSettings(self, settingsSizer):
31203120
displayGroup = guiHelper.BoxSizerHelper(self, sizer=displaySizer)
31213121
settingsSizerHelper.addItem(displayGroup)
31223122
self.displayNameCtrl = ExpandoTextCtrl(
3123-
displayBox,
3124-
size=(self.scaleSize(250), -1),
3123+
displayBox,
3124+
size=(self.scaleSize(250), -1),
31253125
style=wx.TE_READONLY
31263126
)
31273127
self.bindHelpEvent("BrailleSettingsChange", self.displayNameCtrl)
@@ -4108,7 +4108,6 @@ def makeSettings(self, settingsSizer):
41084108
# Translators: The label for the group of controls in symbol pronunciation dialog to change the pronunciation of a symbol.
41094109
changeSymbolText = _("Change selected symbol")
41104110
changeSymbolSizer = wx.StaticBoxSizer(wx.VERTICAL, self, label=changeSymbolText)
4111-
changeSymbolBox = changeSymbolSizer.GetStaticBox()
41124111
changeSymbolGroup = guiHelper.BoxSizerHelper(self, sizer=changeSymbolSizer)
41134112
changeSymbolHelper = sHelper.addItem(changeSymbolGroup)
41144113

0 commit comments

Comments
 (0)