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 paste_cutbuffer(self): root.ids.source.text = CutBuffer.get_cutbuffer()