def test(): selection = listbox.curselection() if selection == (): return entry = entries[selection[0]] updateRunner() script = Generator.Build(runner, entry.character) print(script)
def generate(): char = Character(charVar.get()) charErrors = char.validate() errors.configure(text="/n".join(charErrors)) if len(charErrors) == 0: updateRunner() script = Generator.Build(runner, char) sm.Run(script)