def game_over(self): tk._exit()
def fold(self): messagebox.showinfo("FOLD PRESSED", "Game OVER. Good bye !!!") tk._exit()
def exit(): tk._exit(0)
def okClicked(): _exit()
def on_closing(event=None): """This function is to be called when the window is closed.""" my_msg.set("{quit}") send() tkinter._exit()
""" this is the file you should run to start the app. """ from classes.race import Race import tkinter as tk if (__name__ == "__main__"): race = Race() race.prepareRaceField() race.prepareCompetitors({ "Ada": "red", "Bob": "green", "Ivy": "blue", "Jim": "orange" }) race.startRace() tk.mainloop() # exit immidiately, once top window is closed: tk._exit()
def Close(): tk._exit()
def salir(): tk._exit()