aboutsummaryrefslogtreecommitdiffstats
path: root/examples/axcontainer/axviewer/axviewer.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/axcontainer/axviewer/axviewer.py')
-rw-r--r--examples/axcontainer/axviewer/axviewer.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/axcontainer/axviewer/axviewer.py b/examples/axcontainer/axviewer/axviewer.py
index 7edb99046..50a2d3277 100644
--- a/examples/axcontainer/axviewer/axviewer.py
+++ b/examples/axcontainer/axviewer/axviewer.py
@@ -47,6 +47,7 @@ from PySide6.QtGui import QAction
from PySide6.QtWidgets import (QApplication, QDialog,
QMainWindow, QMessageBox, QToolBar)
+
class MainWindow(QMainWindow):
def __init__(self):
@@ -74,6 +75,7 @@ class MainWindow(QMainWindow):
if not self.axWidget.setControl(clsid):
QMessageBox.warning(self, "AxViewer", "Unable to load " + clsid + ".")
+
if __name__ == '__main__':
app = QApplication(sys.argv)
mainWin = MainWindow()