aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-09-20 11:40:48 +0200
committerEike Ziller <eike.ziller@qt.io>2018-09-20 10:06:01 +0000
commit2ab5bc0a257bd36f8abc39002d531ec6b15ba196 (patch)
treed615730ac78ac4c8960a29df653233ab80f9c58c /python
parente7851e24ee7718df74a71a850a6f853e3c3e0e7a (diff)
Fix example extensions for Python 3
Implicit relative imports are no longer allowed and need to be made explicit. Change-Id: Ic4de2d98229149b4d2920057974f895d9600368b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'python')
-rw-r--r--python/extensionmanager/__init__.py3
-rw-r--r--python/extensionmanager/list.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/python/extensionmanager/__init__.py b/python/extensionmanager/__init__.py
index 7932118..8588796 100644
--- a/python/extensionmanager/__init__.py
+++ b/python/extensionmanager/__init__.py
@@ -40,10 +40,11 @@
# Entry point of the Python extension
+from .list import *
+
from PythonExtension import QtCreator
from PySide2.QtCore import *
from PySide2.QtWidgets import *
-from list import *
# Actions
def showExtensionList():
diff --git a/python/extensionmanager/list.py b/python/extensionmanager/list.py
index 2996be3..d213c35 100644
--- a/python/extensionmanager/list.py
+++ b/python/extensionmanager/list.py
@@ -40,9 +40,10 @@
# Ui for extension list view
+from . import actions
+
from PySide2 import QtCore, QtWidgets, QtGui
from PythonExtension import PluginInstance as instance
-import actions
class ExtensionList(QtWidgets.QListWidget):
def __init__(self):