704 size = self.cw.size() |
704 size = self.cw.size() |
705 self.__layout.addWidget(self.cw) |
705 self.__layout.addWidget(self.cw) |
706 self.resize(size) |
706 self.resize(size) |
707 self.setWindowTitle(self.cw.windowTitle()) |
707 self.setWindowTitle(self.cw.windowTitle()) |
708 |
708 |
709 self.cw.buttonBox.accepted[()].connect(self.accept) |
709 self.cw.buttonBox.accepted.connect(self.accept) |
710 self.cw.buttonBox.rejected[()].connect(self.reject) |
710 self.cw.buttonBox.rejected.connect(self.reject) |
711 |
711 |
712 def getCode(self, indLevel, indString): |
712 def getCode(self, indLevel, indString): |
713 """ |
713 """ |
714 Public method to get the source code. |
714 Public method to get the source code. |
715 |
715 |
738 self.setWindowTitle(self.cw.windowTitle()) |
738 self.setWindowTitle(self.cw.windowTitle()) |
739 |
739 |
740 self.setStyle( |
740 self.setStyle( |
741 Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) |
741 Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) |
742 |
742 |
743 self.cw.buttonBox.accepted[()].connect(self.close) |
743 self.cw.buttonBox.accepted.connect(self.close) |
744 self.cw.buttonBox.rejected[()].connect(self.close) |
744 self.cw.buttonBox.rejected.connect(self.close) |