def addRTrigger(): global cursor, stdscr, theWorld dst = cursor.gMap[cursor.pos] text = "" if 'rtrigger' in dst: text = dst['rtrigger'] dst['rtrigger'] = textbox.textEdit(theWorld, "Add rtrigger code", text)
def executeCode(): global theWorld text = textbox.textEdit(theWorld,'hack') theWorld.evalCode(text) theWorld.lastExecuted = text