PluginManager/PluginRepositoryDialog.py

changeset 1131
7781e396c903
parent 1112
8a7d1b9d18db
child 1310
7fdcfa822e3e
equal deleted inserted replaced
1130:3e9f0330f833 1131:7781e396c903
55 """ 55 """
56 Constructor 56 Constructor
57 57
58 @param parent parent of this dialog (QWidget) 58 @param parent parent of this dialog (QWidget)
59 """ 59 """
60 QWidget.__init__(self, parent) 60 super().__init__(parent)
61 self.setupUi(self) 61 self.setupUi(self)
62 62
63 self.__updateButton = \ 63 self.__updateButton = \
64 self.buttonBox.addButton(self.trUtf8("Update"), QDialogButtonBox.ActionRole) 64 self.buttonBox.addButton(self.trUtf8("Update"), QDialogButtonBox.ActionRole)
65 self.__downloadButton = \ 65 self.__downloadButton = \
490 """ 490 """
491 Constructor 491 Constructor
492 492
493 @param parent reference to the parent widget (QWidget) 493 @param parent reference to the parent widget (QWidget)
494 """ 494 """
495 QDialog.__init__(self, parent) 495 super().__init__(parent)
496 self.setSizeGripEnabled(True) 496 self.setSizeGripEnabled(True)
497 497
498 self.__layout = QVBoxLayout(self) 498 self.__layout = QVBoxLayout(self)
499 self.__layout.setMargin(0) 499 self.__layout.setMargin(0)
500 self.setLayout(self.__layout) 500 self.setLayout(self.__layout)
531 """ 531 """
532 Constructor 532 Constructor
533 533
534 @param parent reference to the parent widget (QWidget) 534 @param parent reference to the parent widget (QWidget)
535 """ 535 """
536 QMainWindow.__init__(self, parent) 536 super().__init__(parent)
537 self.cw = PluginRepositoryWidget(self) 537 self.cw = PluginRepositoryWidget(self)
538 size = self.cw.size() 538 size = self.cw.size()
539 self.setCentralWidget(self.cw) 539 self.setCentralWidget(self.cw)
540 self.resize(size) 540 self.resize(size)
541 541

eric ide

mercurial