PluginManager/PluginUninstallDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2404
cba0ff902c2b
child 2847
1843ef6e2656
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog for plugin deinstallation. 7 Module implementing a dialog for plugin deinstallation.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 import sys 12 import sys
11 import os 13 import os
12 import imp 14 import imp
13 import shutil 15 import shutil
36 Constructor 38 Constructor
37 39
38 @param pluginManager reference to the plugin manager object 40 @param pluginManager reference to the plugin manager object
39 @param parent parent of this dialog (QWidget) 41 @param parent parent of this dialog (QWidget)
40 """ 42 """
41 super().__init__(parent) 43 super(PluginUninstallWidget, self).__init__(parent)
42 self.setupUi(self) 44 self.setupUi(self)
43 45
44 if pluginManager is None: 46 if pluginManager is None:
45 # started as external plugin deinstaller 47 # started as external plugin deinstaller
46 from .PluginManager import PluginManager 48 from .PluginManager import PluginManager
179 Constructor 181 Constructor
180 182
181 @param pluginManager reference to the plugin manager object 183 @param pluginManager reference to the plugin manager object
182 @param parent reference to the parent widget (QWidget) 184 @param parent reference to the parent widget (QWidget)
183 """ 185 """
184 super().__init__(parent) 186 super(PluginUninstallDialog, self).__init__(parent)
185 self.setSizeGripEnabled(True) 187 self.setSizeGripEnabled(True)
186 188
187 self.__layout = QVBoxLayout(self) 189 self.__layout = QVBoxLayout(self)
188 self.__layout.setMargin(0) 190 self.__layout.setMargin(0)
189 self.setLayout(self.__layout) 191 self.setLayout(self.__layout)
205 """ 207 """
206 Constructor 208 Constructor
207 209
208 @param parent reference to the parent widget (QWidget) 210 @param parent reference to the parent widget (QWidget)
209 """ 211 """
210 super().__init__(parent) 212 super(PluginUninstallWindow, self).__init__(parent)
211 self.cw = PluginUninstallWidget(None, self) 213 self.cw = PluginUninstallWidget(None, self)
212 size = self.cw.size() 214 size = self.cw.size()
213 self.setCentralWidget(self.cw) 215 self.setCentralWidget(self.cw)
214 self.resize(size) 216 self.resize(size)
215 217

eric ide

mercurial