aboutsummaryrefslogtreecommitdiffstats
path: root/examples/projects/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/projects/__init__.py')
-rw-r--r--examples/projects/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/projects/__init__.py b/examples/projects/__init__.py
index c7919fc..a618e5b 100644
--- a/examples/projects/__init__.py
+++ b/examples/projects/__init__.py
@@ -42,16 +42,16 @@
# project. It also includes a dependency on a plugin
# that can be disabled.
+from . import view
import examples_common
-import view
-from PythonExtension import QtCreator
+from QtCreator import Core
from PySide2.QtCore import QObject, SIGNAL
from PySide2.QtWidgets import QAction
# When importing optional bindings, we can warn the user in case things go south
try:
- from PythonExtension.QtCreator import ProjectExplorer
+ from QtCreator import ProjectExplorer
except ImportError:
view.error("The extension \"projects\" could not be loaded, since it depends on a disabled plugin.")
raise Exception("Dependencies missing")
@@ -65,7 +65,7 @@ def showProjectPath():
view.error("Please open a project")
action = QAction("Show Project Directory")
-command = QtCreator.Core.ActionManager.registerAction(action, 'PythonExtensions.Examples.ShowProjectDirectory')
+command = Core.ActionManager.registerAction(action, 'PythonExtensions.Examples.ShowProjectDirectory')
QObject.connect(action, SIGNAL('triggered()'), showProjectPath)
examples_common.addExampleItem(command)