39 Constructor |
39 Constructor |
40 |
40 |
41 @param pluginManager reference to the plugin manager object |
41 @param pluginManager reference to the plugin manager object |
42 @param parent parent of this dialog (QWidget) |
42 @param parent parent of this dialog (QWidget) |
43 """ |
43 """ |
44 super(PluginUninstallWidget, self).__init__(parent) |
44 super().__init__(parent) |
45 self.setupUi(self) |
45 self.setupUi(self) |
46 |
46 |
47 if pluginManager is None: |
47 if pluginManager is None: |
48 # started as external plugin deinstaller |
48 # started as external plugin deinstaller |
49 from .PluginManager import PluginManager |
49 from .PluginManager import PluginManager |
214 Constructor |
214 Constructor |
215 |
215 |
216 @param pluginManager reference to the plugin manager object |
216 @param pluginManager reference to the plugin manager object |
217 @param parent reference to the parent widget (QWidget) |
217 @param parent reference to the parent widget (QWidget) |
218 """ |
218 """ |
219 super(PluginUninstallDialog, self).__init__(parent) |
219 super().__init__(parent) |
220 self.setSizeGripEnabled(True) |
220 self.setSizeGripEnabled(True) |
221 |
221 |
222 self.__layout = QVBoxLayout(self) |
222 self.__layout = QVBoxLayout(self) |
223 self.__layout.setContentsMargins(0, 0, 0, 0) |
223 self.__layout.setContentsMargins(0, 0, 0, 0) |
224 self.setLayout(self.__layout) |
224 self.setLayout(self.__layout) |
241 """ |
241 """ |
242 Constructor |
242 Constructor |
243 |
243 |
244 @param parent reference to the parent widget (QWidget) |
244 @param parent reference to the parent widget (QWidget) |
245 """ |
245 """ |
246 super(PluginUninstallWindow, self).__init__(parent) |
246 super().__init__(parent) |
247 self.cw = PluginUninstallWidget(None, self) |
247 self.cw = PluginUninstallWidget(None, self) |
248 size = self.cw.size() |
248 size = self.cw.size() |
249 self.setCentralWidget(self.cw) |
249 self.setCentralWidget(self.cw) |
250 self.resize(size) |
250 self.resize(size) |
251 self.setWindowTitle(self.cw.windowTitle()) |
251 self.setWindowTitle(self.cw.windowTitle()) |