aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/state-machine/eventtrans.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/state-machine/eventtrans.py')
-rw-r--r--examples/widgets/state-machine/eventtrans.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/widgets/state-machine/eventtrans.py b/examples/widgets/state-machine/eventtrans.py
index 3445832a0..312b4e258 100644
--- a/examples/widgets/state-machine/eventtrans.py
+++ b/examples/widgets/state-machine/eventtrans.py
@@ -2,7 +2,7 @@
#############################################################################
##
## Copyright (C) 2010 velociraptor Genjix <aphidia@hotmail.com>
-## Copyright (C) 2016 The Qt Company Ltd.
+## Copyright (C) 2021 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is part of the Qt for Python examples of the Qt Toolkit.
@@ -42,6 +42,8 @@
from PySide6.QtWidgets import *
from PySide6.QtCore import *
+from PySide6.QtStateMachine import QEventTransition, QState, QStateMachine
+
class MainWindow(QMainWindow):
def __init__(self):