Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 3
0
	def copyPreamble(self):
		try:
			if self.documentHasFocus():
				addToClipboard(self.focused_document.model.preamble)
			else:
				QApplication.beep()
		except Exception, e:
			Dialogs.showError(e)