14 import glob |
14 import glob |
15 |
15 |
16 from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt |
16 from PyQt6.QtCore import pyqtSlot, pyqtSignal, Qt |
17 from PyQt6.QtWidgets import QWidget, QDialog, QVBoxLayout, QListWidgetItem |
17 from PyQt6.QtWidgets import QWidget, QDialog, QVBoxLayout, QListWidgetItem |
18 |
18 |
19 from EricWidgets import EricMessageBox |
19 from eric7.EricWidgets import EricMessageBox |
20 from EricWidgets.EricMainWindow import EricMainWindow |
20 from eric7.EricWidgets.EricMainWindow import EricMainWindow |
21 from EricWidgets.EricApplication import ericApp |
21 from eric7.EricWidgets.EricApplication import ericApp |
22 |
22 |
23 from .Ui_PluginUninstallDialog import Ui_PluginUninstallDialog |
23 from .Ui_PluginUninstallDialog import Ui_PluginUninstallDialog |
24 |
24 |
25 import Preferences |
25 from eric7 import Preferences |
26 import UI.PixmapCache |
26 from eric7.EricGui import EricPixmapCache |
27 |
27 |
28 |
28 |
29 class PluginUninstallWidget(QWidget, Ui_PluginUninstallDialog): |
29 class PluginUninstallWidget(QWidget, Ui_PluginUninstallDialog): |
30 """ |
30 """ |
31 Class implementing a dialog for plugin deinstallation. |
31 Class implementing a dialog for plugin deinstallation. |
223 return False |
223 return False |
224 |
224 |
225 if not self.__external: |
225 if not self.__external: |
226 ui = ericApp().getObject("UserInterface") |
226 ui = ericApp().getObject("UserInterface") |
227 ui.showNotification( |
227 ui.showNotification( |
228 UI.PixmapCache.getPixmap("plugin48"), |
228 EricPixmapCache.getPixmap("plugin48"), |
229 self.tr("Plugin Uninstallation"), |
229 self.tr("Plugin Uninstallation"), |
230 self.tr( |
230 self.tr( |
231 """<p>The plugin <b>{0}</b> was uninstalled""" |
231 """<p>The plugin <b>{0}</b> was uninstalled""" |
232 """ successfully from {1}.</p>""" |
232 """ successfully from {1}.</p>""" |
233 ).format(pluginName, pluginDirectory), |
233 ).format(pluginName, pluginDirectory), |