Python Forum
[PyGame] Python pygame hangs up after 40 minutes
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Python pygame hangs up after 40 minutes
#6
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.
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
RE: Python pygame hangs up after 40 minutes - by Windspar - Jul-25-2019, 06:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame in 90 Minutes - For Beginners syntax issues GoldenHarvey 6 2,785 Dec-18-2023, 10:11 AM
Last Post: KeeleyGreenfelder

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020