- more PEP8 corrections

This commit is contained in:
Marius Stanciu
2019-07-16 20:51:09 +03:00
parent e6153298bc
commit 6743927eb2
10 changed files with 98 additions and 115 deletions

View File

@@ -87,8 +87,8 @@ def on_language_apply_click(app, restart=False):
msgbox.setInformativeText("Are you sure do you want to change the current language to %s?" % name.capitalize())
msgbox.setWindowTitle("Apply Language ...")
msgbox.setWindowIcon(QtGui.QIcon('share/language32.png'))
bt_yes = msgbox.addButton(_('Yes'), QtWidgets.QMessageBox.YesRole)
bt_no = msgbox.addButton(_('No'), QtWidgets.QMessageBox.NoRole)
bt_yes = msgbox.addButton('Yes', QtWidgets.QMessageBox.YesRole)
bt_no = msgbox.addButton('No', QtWidgets.QMessageBox.NoRole)
msgbox.setDefaultButton(bt_yes)
msgbox.exec_()
@@ -156,5 +156,3 @@ def restart_program(app):
app.save_defaults()
python = sys.executable
os.execl(python, python, *sys.argv)