+ def addMainScreenButton(self, caption, action):
+ # allows another screen to add a button to mainscreen
+ button = QPushButton(caption, self)
+ self.sliceWidget.bottomlayout.insertWidget(2, button)
+ self.sliceWidget.connect(button, SIGNAL('clicked()'), action)
+ return button
+
+