PluginManager/PluginInstallDialog.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1509
c0b5e693b0eb
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
40 @param pluginManager reference to the plugin manager object 40 @param pluginManager reference to the plugin manager object
41 @param pluginFileNames list of plugin files suggested for 41 @param pluginFileNames list of plugin files suggested for
42 installation (list of strings) 42 installation (list of strings)
43 @param parent parent of this dialog (QWidget) 43 @param parent parent of this dialog (QWidget)
44 """ 44 """
45 QWidget.__init__(self, parent) 45 super().__init__(parent)
46 self.setupUi(self) 46 self.setupUi(self)
47 47
48 if pluginManager is None: 48 if pluginManager is None:
49 # started as external plugin installer 49 # started as external plugin installer
50 self.__pluginManager = PluginManager(doLoadPlugins=False) 50 self.__pluginManager = PluginManager(doLoadPlugins=False)
518 @param pluginManager reference to the plugin manager object 518 @param pluginManager reference to the plugin manager object
519 @param pluginFileNames list of plugin files suggested for 519 @param pluginFileNames list of plugin files suggested for
520 installation (list of strings) 520 installation (list of strings)
521 @param parent reference to the parent widget (QWidget) 521 @param parent reference to the parent widget (QWidget)
522 """ 522 """
523 QDialog.__init__(self, parent) 523 super().__init__(parent)
524 self.setSizeGripEnabled(True) 524 self.setSizeGripEnabled(True)
525 525
526 self.__layout = QVBoxLayout(self) 526 self.__layout = QVBoxLayout(self)
527 self.__layout.setMargin(0) 527 self.__layout.setMargin(0)
528 self.setLayout(self.__layout) 528 self.setLayout(self.__layout)
554 554
555 @param pluginFileNames list of plugin files suggested for 555 @param pluginFileNames list of plugin files suggested for
556 installation (list of strings) 556 installation (list of strings)
557 @param parent reference to the parent widget (QWidget) 557 @param parent reference to the parent widget (QWidget)
558 """ 558 """
559 QMainWindow.__init__(self, parent) 559 super().__init__(parent)
560 self.cw = PluginInstallWidget(None, pluginFileNames, self) 560 self.cw = PluginInstallWidget(None, pluginFileNames, self)
561 size = self.cw.size() 561 size = self.cw.size()
562 self.setCentralWidget(self.cw) 562 self.setCentralWidget(self.cw)
563 self.resize(size) 563 self.resize(size)
564 564

eric ide

mercurial