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)
#15
(Apr-27-2019, 04:31 PM)Yoriz Wrote: In the code above you have
 def playmp3(file): playsound(file1) playsound(file2) 
should be as shown in my code before
 def playmp3(file): playsound(file) 
what you have done has made it that each time playmp3 is called it will play file1 followed by file2 regardless of what file name is passed to it. Don't change max_workers from 1, if you do it will play as mp3 at the same time as you set the value to, rather then wait till one is finished before playing the next.

Well, since you solved my problem, i just put all the jokes into one mp3 file, i was going around and around, how to play the other jokes, so it is done. Many thanks yoriz, right now i'm about to be changing home, so the project isn't my first priority. But when i will be able to continue, i will put your name in my project (like a notice, "the main helper", something cool), if you don't mind.
Reply


Messages In This Thread
RE: pygame button stuck(unable to do anything) - by francisco_neves2020 - Apr-27-2019, 09:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Tkinter:Unable to bind and unbind function with a button shallanq 2 5,158 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,145 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp
  Unable to return value from callback function of a button in Python Tkinter nilaybnrj 4 21,019 Aug-05-2018, 11:01 PM
Last Post: woooee
  [Tkinter] Button widget gets stuck from using tkinter.messagebox? Nwb 2 4,020 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