Horje
how to play sound after pressing a button in tkinter Code Example
how to play sound after pressing a button in tkinter
from Tkinter import *
import mp3play

root = Tk() # create tkinter window

f = mp3play.load('Sound.mp3'); play = lambda: f.play()
button = Button(root, text = 'Play', command = play)

button.pack()
root.mainloop()




Python

Related
scikit learn linear regression Code Example scikit learn linear regression Code Example
smp meaning Code Example smp meaning Code Example
python tkinter clear textbox Code Example python tkinter clear textbox Code Example
pandas reset row indices Code Example pandas reset row indices Code Example
python detect internet connection Code Example python detect internet connection Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7