def copyPreambleAndSource(self): try: if self.documentHasFocus(): addToClipboard("%s\n\n%s" % (self.focused_document.model.preamble, self.focused_document.model.source)) else: QApplication.beep() except Exception, e: Dialogs.showError(e)
def copyPreamble(self): try: if self.documentHasFocus(): addToClipboard(self.focused_document.model.preamble) else: QApplication.beep() except Exception as e: Dialogs.showError(e)
def copyPreamble(self): try: if self.documentHasFocus(): addToClipboard(self.focused_document.model.preamble) else: QApplication.beep() except Exception, e: Dialogs.showError(e)