aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/mainwindows
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/mainwindows')
-rw-r--r--examples/widgets/mainwindows/application/application.py1
-rw-r--r--examples/widgets/mainwindows/mdi/mdi.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/mainwindows/application/application.py b/examples/widgets/mainwindows/application/application.py
index d355a7cb2..dc86b5dd4 100644
--- a/examples/widgets/mainwindows/application/application.py
+++ b/examples/widgets/mainwindows/application/application.py
@@ -51,6 +51,7 @@ from PySide6.QtWidgets import (QApplication, QFileDialog, QMainWindow,
import application_rc
+
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
diff --git a/examples/widgets/mainwindows/mdi/mdi.py b/examples/widgets/mainwindows/mdi/mdi.py
index 7027d32cc..a4846442e 100644
--- a/examples/widgets/mainwindows/mdi/mdi.py
+++ b/examples/widgets/mainwindows/mdi/mdi.py
@@ -144,7 +144,7 @@ class MdiChild(QTextEdit):
def maybe_save(self):
if self.document().isModified():
f = self.user_friendly_current_file()
- message = f"'{f}' has been modified.\nDo you want to save your changes?"
+ message = f"'{f}' has been modified.\nDo you want to save your changes?"
ret = QMessageBox.warning(self, "MDI", message,
QMessageBox.Save | QMessageBox.Discard | QMessageBox.Cancel)