Python Forum
[PyGUI] pygame button stuck(unable to do anything)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGUI] pygame button stuck(unable to do anything)
#2
Using time.sleep in gui code or anything that takes some time to run will block the event loop and freeze the updating of the gui widgets.
To not lock the gui code that would freeze the gui would have to be put into a separate thread.
Reply


Messages In This Thread
RE: pygame button stuck(unable to do anything) - by Yoriz - Apr-24-2019, 09:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter:Unable to bind and unbind function with a button shallanq 2 5,101 Mar-28-2020, 02:05 AM
Last Post: joe_momma
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 5,081 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp
  Unable to return value from callback function of a button in Python Tkinter nilaybnrj 4 20,916 Aug-05-2018, 11:01 PM
Last Post: woooee
  [Tkinter] Button widget gets stuck from using tkinter.messagebox? Nwb 2 3,953 Jun-20-2018, 02:21 PM
Last Post: Nwb

Forum Jump:

User Panel Messages

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