For testing I installed mpg123 and used the os.system(“mpg123 Muziek/siren.mp3”) as in the following code (rest of the code is the same, only import os at the beginning of the script):
global counter
os.system("mpg123 Muziek/siren.mp3")
print ('pressed')
counter += 1
self.SongFinished(1)
print("Finished")
time.sleep(3)
If I start this code, the problem arises ![]()
Now the song plays when the button is pushed, but the label is not updated anymore, only the first time the song plays…
Someone… Anny idea? If I can’t find a solution I’ll have to quit the GUI approach and work in the command line interface ![]()
Tomorrow I’ll give it a last try… Thanks in advance if someone can help me out. For now I’m gone take a break, I’ll be back tomorrow.
