aboutsummaryrefslogtreecommitdiffstats
path: root/python/extensionmanager/list.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/extensionmanager/list.py')
-rw-r--r--python/extensionmanager/list.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/extensionmanager/list.py b/python/extensionmanager/list.py
index 32002b1..c71b4d4 100644
--- a/python/extensionmanager/list.py
+++ b/python/extensionmanager/list.py
@@ -43,7 +43,7 @@
from . import actions
from PySide2 import QtCore, QtWidgets, QtGui
-from PythonExtension import PluginInstance as instance
+from QtCreator import PythonExtensions
class ExtensionList(QtWidgets.QListWidget):
def __init__(self):
@@ -56,7 +56,7 @@ class ExtensionList(QtWidgets.QListWidget):
def loadExtensionList(self):
i = 0
- for ext in instance.extensionList():
+ for ext in PythonExtensions.extensionList():
item = QtWidgets.QListWidgetItem(self)
if not ext.loaded:
item.setText(ext.name + " [did not load]")
@@ -79,7 +79,7 @@ class ListView(QtWidgets.QDialog):
self.layout = QtWidgets.QVBoxLayout(self)
self.label = QtWidgets.QLabel()
- self.label.setText("Manage Python extensions installed to \"{0}\".".format(instance.extensionDir().absolutePath()))
+ self.label.setText("Manage Python extensions installed to \"{0}\".".format(PythonExtensions.extensionDir().absolutePath()))
self.label.setWordWrap(True)
self.layout.addWidget(self.label)
@@ -116,7 +116,7 @@ class ListView(QtWidgets.QDialog):
selected = self.list.selectedIndexes()
if len(selected) >= 1:
selected = selected[0].row()
- ext = instance.extensionList()[selected]
+ ext = PythonExtensions.extensionList()[selected]
if ext == "extensionmanager":
QtWidgets.QMessageBox.warning(self, "Can not Uninstall", "The Extension Manager can not uninstall itself.")
else:
@@ -145,7 +145,7 @@ class ListView(QtWidgets.QDialog):
"/",
"Qt Creator Python Extensions (*.zip)"
)
- oldExtensions = list(instance.extensionList())
+ oldExtensions = list(PythonExtensions.extensionList())
result = actions.install(fileName[0])
if result == True:
QtWidgets.QMessageBox.information(