Jul-25-2019, 06:08 PM
This could all be done in pygame. If you really need to use joystick.
First. You need to redo code with some structure. List, Dicts, Functions, and Classes. Need to reduce or eliminate globals.
Second tkinter has a main loop. Creating a second loop probably where your problems is.
If you still want to use pygame in tkinter. Don't use pygame.init. Only initialize what you need.
To get pygame event loop in tkinter. You going to have to use tkinter after method.
First. You need to redo code with some structure. List, Dicts, Functions, and Classes. Need to reduce or eliminate globals.
Second tkinter has a main loop. Creating a second loop probably where your problems is.
If you still want to use pygame in tkinter. Don't use pygame.init. Only initialize what you need.
To get pygame event loop in tkinter. You going to have to use tkinter after method.
99 percent of computer problems exists between chair and keyboard.