Tqst Drove

With the changes made to your program in IDLE, press F5 to see how things perform now.

hf m I x. py w - /horn eyba rry p^HQ^id F Irct Prog :c H ,1 p i e r 9 co<( ? s t a i +

r tKintcr *

app .title ( '.Jcad l i^Dt r-li>i"j <ijiĀ£i-ijrfiiircl ry ( " J 'in* l fin-t-!flfl1-lfln " )

(mod file = ">04*><> h REH MnMli m 1 k ri = I_r .-t r " iJ. m | y r [

ciKer.initjJ

Head First Mix track - mi xer.Sound(aDund_fileI track_playing - IntVnrf)

3tart_butron = Button(app, comma nd=t rack_st art, text = ic .nrc ) 31 art_bkitton. pack (a ide - LEFT}

atop_button = Button;appr command = track._3cop, text = "Stop- ) a fc op_button.pack(aide - III GET}

app - protocol ( "WU_DELETE_KlNBOW", ahutdovp app, r.ainloop ( ) i

The sound stops when I click to close the window, but now the GUI doesn't disappear!

Start

Stop

What gives? You've solved one problem, but created another. When the DJ clicks on the close box, the track stops playing, which is what you wanted. But now, the window won't close.

This can't be good, can it?

terminate with extreme prejudice

Was this article helpful?

0 0

Post a comment