Greetings!
Let's say you want to write a video game, with Tk as your interface, say an rts, not turn-based. There are going to be things happening in the background in addition to getting user input. How do you code, say, the AI, or the sprite animations in a canvas widget while the program also handles random user input?
OR...Let's say you have to make a GUI for a program that is monitoring chemical processes and operating valves while handling random user input all at the same time?
In short, is there any way to code with Tk so that is something other than completely event-driven, or is Tk strictly event-driven?
How is Tetris done with Tk?
Let's say you want to write a video game, with Tk as your interface, say an rts, not turn-based. There are going to be things happening in the background in addition to getting user input. How do you code, say, the AI, or the sprite animations in a canvas widget while the program also handles random user input?
OR...Let's say you have to make a GUI for a program that is monitoring chemical processes and operating valves while handling random user input all at the same time?
In short, is there any way to code with Tk so that is something other than completely event-driven, or is Tk strictly event-driven?
How is Tetris done with Tk?