The title really says it all. For example if I had a music file and I wanted to have it play all the way through then how would I make it start another music file after the first is done?
inuasha
0
Newbie Poster
Recommended Answers
Jump to PostI think that you are posting in the wrong forum: How is this a Python question? Ignoring that issue, you are confused again: A "music file" doesn't "play all the way through" because it holds music, but does not play it. In general terms: To have something happen after something …
Jump to PostI've never used it, but the subprocess module may be what you need. It seems to feature a function that will start a subprocess and wait for the subprocess exit code. If the exit code is non-zero then the function will raise an exception.
All 5 Replies
griswolf
304
Veteran Poster
inuasha
0
Newbie Poster
lrh9
95
Posting Whiz in Training
griswolf
304
Veteran Poster
inuasha
0
Newbie 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.