def textinsert(self, widget, text): HatariTextInsert(self.hatari, text)
def _entry_cb(self, widget): text = self.entry.get_text() if text: HatariTextInsert(self.hatari, text) self.entry.set_text("")