- self.connect(self.pageContent.newButton, SIGNAL("clicked()"), lambda: self.mutualExclusion("new"))
- self.connect(self.pageContent.editButton, SIGNAL("clicked()"), lambda: self.mutualExclusion("edit"))
+ self.connect(self.content.newButton, SIGNAL("clicked()"), self.newProject)
+ self.connect(self.content.editButton, SIGNAL("clicked()"), self.editProject)
+
+ def _initializeButtons(self):
+ self.buttonGroup = QButtonGroup()
+ self.buttonGroup.addButton(self.content.newButton)
+ self.buttonGroup.addButton(self.content.editButton)
+ self.buttonGroup.setExclusive(True)