Is possible play waw, wma, mp3 with wxPython without oppening any window? Program will be based on Tk, only playing sounds on wx.
Blujacker
7
Junior Poster in Training
Recommended Answers
Jump to PostAt first blush, I would say no, since you have to assign a parent to the control widget and the parent has to be a wx frame. wx panel or such thing.
You could however write a minimum wx program and then run that from within Tkinter with execfile("My_
Jump to PostI dug up some work I had done with the tkSnack module a while back, and low and behold, it does allow you to play sound files with the Tkinter GUI. At least .wav .mp3 and .au sound files. I posted an example in the Python snippets:
http://www.daniweb.com/code/snippet511.htmlAs …
Jump to PostHmm, I took your modified code and it works just fine. What kind of audio file did you try to load?
Jump to PostIn my test it played right after the file load. You have to press the button only if you want to play it again.
All 15 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Blujacker
7
Junior Poster in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Blujacker
7
Junior Poster in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Blujacker
7
Junior Poster in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Blujacker
7
Junior Poster in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Blujacker
7
Junior Poster in Training
bumsfeld
413
Nearly a Posting Virtuoso
Blujacker
7
Junior Poster in Training
vpalexander
0
Newbie Poster
karenmaye
0
Newbie Poster
lllllIllIlllI
178
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.