diff options
Diffstat (limited to 'examples/smallmenu/__init__.py')
-rw-r--r-- | examples/smallmenu/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/smallmenu/__init__.py b/examples/smallmenu/__init__.py index f01a8b0..f26b637 100644 --- a/examples/smallmenu/__init__.py +++ b/examples/smallmenu/__init__.py @@ -44,24 +44,24 @@ from .actions import hello, goodbye import examples_common -from PythonExtension import QtCreator +from QtCreator import Core from PySide2.QtCore import QObject, SIGNAL from PySide2.QtWidgets import QAction # Create submenu and add it to examples menu menuId = "PythonExtensions.Examples.SmallMenu" -menu = QtCreator.Core.ActionManager.createMenu(menuId) +menu = Core.ActionManager.createMenu(menuId) menu.menu().setTitle("Small Menu") examplesMenu = examples_common.ensureExamplesMenu() examplesMenu.addMenu(menu) # Add actions to our new menu helloAction = QAction("Say Hello") -command = QtCreator.Core.ActionManager.registerAction(helloAction, 'PythonExtensions.Examples.SayHello') +command = Core.ActionManager.registerAction(helloAction, 'PythonExtensions.Examples.SayHello') QObject.connect(helloAction, SIGNAL('triggered()'), hello) menu.addAction(command) goodbyeAction = QAction("Say Goodbye") -command = QtCreator.Core.ActionManager.registerAction(goodbyeAction, 'PythonExtensions.Examples.SayGoodbye') +command = Core.ActionManager.registerAction(goodbyeAction, 'PythonExtensions.Examples.SayGoodbye') QObject.connect(goodbyeAction, SIGNAL('triggered()'), goodbye) menu.addAction(command) |