aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sql/books/bookwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/books/bookwindow.py')
-rw-r--r--examples/sql/books/bookwindow.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/sql/books/bookwindow.py b/examples/sql/books/bookwindow.py
index 0439ce9c7..7f9e0f94b 100644
--- a/examples/sql/books/bookwindow.py
+++ b/examples/sql/books/bookwindow.py
@@ -82,17 +82,17 @@ class BookWindow(QMainWindow, Ui_BookWindow):
def create_menubar(self):
file_menu = self.menuBar().addMenu(self.tr("&File"))
quit_action = file_menu.addAction(self.tr("&Quit"))
- quit_action.triggered.connect(qApp.quit)
+ quit_action.triggered.connect(qApp.quit) # noqa: F821
help_menu = self.menuBar().addMenu(self.tr("&Help"))
about_action = help_menu.addAction(self.tr("&About"))
about_action.setShortcut(QKeySequence.HelpContents)
about_action.triggered.connect(self.about)
aboutQt_action = help_menu.addAction("&About Qt")
- aboutQt_action.triggered.connect(qApp.aboutQt)
+ aboutQt_action.triggered.connect(qApp.aboutQt) # noqa: F821
@Slot()
def about(self):
QMessageBox.about(self, self.tr("About Books"),
- self.tr("<p>The <b>Books</b> example shows how to use Qt SQL classes "
- "with a model/view framework."))
+ self.tr("<p>The <b>Books</b> example shows how to use Qt SQL classes "
+ "with a model/view framework."))