46 @param pluginManager reference to the plugin manager object |
46 @param pluginManager reference to the plugin manager object |
47 @param pluginFileNames list of plugin files suggested for |
47 @param pluginFileNames list of plugin files suggested for |
48 installation (list of strings) |
48 installation (list of strings) |
49 @param parent parent of this dialog (QWidget) |
49 @param parent parent of this dialog (QWidget) |
50 """ |
50 """ |
51 super(PluginInstallWidget, self).__init__(parent) |
51 super().__init__(parent) |
52 self.setupUi(self) |
52 self.setupUi(self) |
53 |
53 |
54 if pluginManager is None: |
54 if pluginManager is None: |
55 # started as external plugin installer |
55 # started as external plugin installer |
56 from .PluginManager import PluginManager |
56 from .PluginManager import PluginManager |
618 @param pluginManager reference to the plugin manager object |
618 @param pluginManager reference to the plugin manager object |
619 @param pluginFileNames list of plugin files suggested for |
619 @param pluginFileNames list of plugin files suggested for |
620 installation (list of strings) |
620 installation (list of strings) |
621 @param parent reference to the parent widget (QWidget) |
621 @param parent reference to the parent widget (QWidget) |
622 """ |
622 """ |
623 super(PluginInstallDialog, self).__init__(parent) |
623 super().__init__(parent) |
624 self.setSizeGripEnabled(True) |
624 self.setSizeGripEnabled(True) |
625 |
625 |
626 self.__layout = QVBoxLayout(self) |
626 self.__layout = QVBoxLayout(self) |
627 self.__layout.setContentsMargins(0, 0, 0, 0) |
627 self.__layout.setContentsMargins(0, 0, 0, 0) |
628 self.setLayout(self.__layout) |
628 self.setLayout(self.__layout) |
655 |
655 |
656 @param pluginFileNames list of plugin files suggested for |
656 @param pluginFileNames list of plugin files suggested for |
657 installation (list of strings) |
657 installation (list of strings) |
658 @param parent reference to the parent widget (QWidget) |
658 @param parent reference to the parent widget (QWidget) |
659 """ |
659 """ |
660 super(PluginInstallWindow, self).__init__(parent) |
660 super().__init__(parent) |
661 self.cw = PluginInstallWidget(None, pluginFileNames, self) |
661 self.cw = PluginInstallWidget(None, pluginFileNames, self) |
662 size = self.cw.size() |
662 size = self.cw.size() |
663 self.setCentralWidget(self.cw) |
663 self.setCentralWidget(self.cw) |
664 self.resize(size) |
664 self.resize(size) |
665 self.setWindowTitle(self.cw.windowTitle()) |
665 self.setWindowTitle(self.cw.windowTitle()) |