Beispiel #1
0
	def on_start(self):
		text = ''
		if CutBuffer:
			text = CutBuffer.get_cutbuffer()
		else:
			cbbtn = root.ids.cutbuffer
			cbbtn.parent.remove_widget(cbbtn)
		if not text:
			text = Clipboard.copy()
		root.ids.source.text = text or ''
		root.ids.manip.focus = True
Beispiel #2
0
	def copy_output(self):
		Clipboard.copy(root.ids.output.text)
		if CutBuffer:
			CutBuffer.set_cutbuffer(root.ids.output.text)
Beispiel #3
0
	def paste_cutbuffer(self):
		root.ids.source.text = CutBuffer.get_cutbuffer()