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
def copy_output(self): Clipboard.copy(root.ids.output.text) if CutBuffer: CutBuffer.set_cutbuffer(root.ids.output.text)
def paste_cutbuffer(self): root.ids.source.text = CutBuffer.get_cutbuffer()