Пример #1
0
	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)
Пример #2
0
 def copyPreamble(self):
     try:
         if self.documentHasFocus():
             addToClipboard(self.focused_document.model.preamble)
         else:
             QApplication.beep()
     except Exception as e:
         Dialogs.showError(e)
Пример #3
0
	def copyPreamble(self):
		try:
			if self.documentHasFocus():
				addToClipboard(self.focused_document.model.preamble)
			else:
				QApplication.beep()
		except Exception, e:
			Dialogs.showError(e)