Пример #1
0
    def test():
        selection = listbox.curselection()
        if selection == ():
            return

        entry = entries[selection[0]]

        updateRunner()
        script = Generator.Build(runner, entry.character)
        print(script)
Пример #2
0
    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)