Your skill will accomplish what the force of many cannot |
|
PerlMonks |
tk player with system/execby mce (Curate) |
on Dec 20, 2002 at 14:16 UTC ( [id://221436]=perlquestion: print w/replies, xml ) | Need Help?? |
mce has asked for the wisdom of the Perl Monks concerning the following question:
Hi oh wize ones,
I have a question about perl Tk (perl 561, tk800.024). I open a MainWindow/TopLevel with all the possible stored radio urls from mysql. Than I click on one and this starts mplayer.To do this I launch mplayer with a fork + exec. And in the mean time, I open a new TopLevel just a button that the specific radio is playing. Now my question: When the mplayer command exits or abords, the TopLevel button still shows running as I run mplayer with an exec, and there is no feedback to the Tk window. How can I deal with this? Is there a Tk module that allows one to fork a new process (with system or exec or whatever) and that shows in the mean time a window it is running, and closes the window when it is finnished. It would even be nice to have a kill method to? I looked at Tk::IO etc.. But I have no clue how to use it.
I hope my question is clear enough.
Back to
Seekers of Perl Wisdom
|
|