Sst drlve

Enter the code from the previous page into IDLE, save it as hfmix. pyw, and press F5 to try it out.

The first version of the DJ's program entered in

IDLE.

The first version of the DJ's program entered in

IDLE.

You already know how to display buttons on a GUI and associate them with event-handling code. What's new in this code is the loops = -1 bit, which arranges to play the sound repeatedly. That is, the track loops.

That was almost too easy!

stop the music

Was this article helpful?

0 0

Post a comment