Questions tagged [winsound]

Use this tag for questions related to winsound module.

The winsound is a python module for playing sound on Windows. This API allow python script to invoke Windows system sound (e.g. SystemExit) and external wav files or memory stream.

79 questions
-1
votes
1 answer

use winsound in a tkinter program from within a dictionary in python

I have edited the code a bit would this new code work and if not what should i do to get it to work import winsound import tkinter as tk from functools import partial # a quick way to make a callback function import…
-1
votes
2 answers

Can't play .mp3 file using winsound on windows

I am trying to play an audio file but it only makes the windows alert sound when I open/run the code. How do I fix this? EDIT: nothing on winsound works it just makes the windows alert noise (windows background.wav) right click on the sound button…
Glitchd
  • 361
  • 2
  • 12
-1
votes
1 answer

python tkinter GUI freezes and music player button won't worked for more than once

How can I make the play button work as many times as possible but also being able to use the rest of the GUI and not having it freeze up. I'd like to be able to use the play button more than once but it keeps saying TypeError: can't pickle…
-2
votes
1 answer

Playing sound and a program

What I want to do is get an audio file to play while a def (function) is running. I've looked it up and seen that threading works but it is wayyyy to complicated for me to work out. Is there a way you guys can explain it to me? I was using winsound…
1 2 3 4 5
6