543 self.cw = PluginRepositoryWidget(self) |
543 self.cw = PluginRepositoryWidget(self) |
544 size = self.cw.size() |
544 size = self.cw.size() |
545 self.__layout.addWidget(self.cw) |
545 self.__layout.addWidget(self.cw) |
546 self.resize(size) |
546 self.resize(size) |
547 |
547 |
548 self.connect(self.cw.buttonBox, SIGNAL("accepted()"), self.accept) |
548 self.cw.buttonBox.accepted[()].connect(self.accept) |
549 self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.reject) |
549 self.cw.buttonBox.rejected[()].connect(self.reject) |
550 self.connect(self.cw, SIGNAL("closeAndInstall"), self.__closeAndInstall) |
550 self.connect(self.cw, SIGNAL("closeAndInstall"), self.__closeAndInstall) |
551 |
551 |
552 def __closeAndInstall(self): |
552 def __closeAndInstall(self): |
553 """ |
553 """ |
554 Private slot to handle the closeAndInstall signal. |
554 Private slot to handle the closeAndInstall signal. |
577 self.cw = PluginRepositoryWidget(self) |
577 self.cw = PluginRepositoryWidget(self) |
578 size = self.cw.size() |
578 size = self.cw.size() |
579 self.setCentralWidget(self.cw) |
579 self.setCentralWidget(self.cw) |
580 self.resize(size) |
580 self.resize(size) |
581 |
581 |
582 self.connect(self.cw.buttonBox, SIGNAL("accepted()"), self.close) |
582 self.cw.buttonBox.accepted[()].connect(self.close) |
583 self.connect(self.cw.buttonBox, SIGNAL("rejected()"), self.close) |
583 self.cw.buttonBox.rejected[()].connect(self.close) |
584 self.connect(self.cw, SIGNAL("closeAndInstall"), self.__startPluginInstall) |
584 self.connect(self.cw, SIGNAL("closeAndInstall"), self.__startPluginInstall) |
585 |
585 |
586 def __startPluginInstall(self): |
586 def __startPluginInstall(self): |
587 """ |
587 """ |
588 Private slot to start the eric5 plugin installation dialog. |
588 Private slot to start the eric5 plugin installation dialog. |