1

I have used the following code and I am not sure why it is not working.

from PythonCard import model

playSound = 1

class MainWindow(model.Background):
    pass

app = model.Application(MainWindow)
app.MainLoop()

if playSound == 1:
    s = Sound()
    s.read('start.wav')
    s.play
    playSound = 0

1 Answers1

2

Use parenthesis to call a function:

s.play()
Steven Rumbalski
  • 44,786
  • 9
  • 89
  • 119