Hello everybody, Some time ago I wrote a perl-module to make it easier for me to read and encode audio-cds. I had done so, planning to write a GUI in Perl/Tk later. A few days ago, "Mastering Perl/Tk" arrived, I started playing around with simple excercises, until I felt like I knew what I wanted the GUI to be like.
In fact, it mostly works now. And, by the way, I was just amazed to see how quickly I got it working. Tk is very easy to use, yet powerful. There is just one thing I had all forgotten about, I cannot display the progress of reading/encoding the CD via Tk. When I call the GUI from the command-line, the output of the programs reading and encoding the CD (cdparanoia, lame, oggenc) goes to the terminal. First I thought of a progressbar, which would look nice, but calculating how much of the encoding is done already seems like too much work. Plus, cdparanoia/lame/oggenc format their output very nicely, so I though of "capturing" that output and display it via e.g. a ROText-widget. I'm not sure how to do this, though. ;-/ Especially, I don't know if this can be done without major changes to the module. As of now, the programs are called via system(). So far, both the module and the GUI are rather simple. If possible, I would like to keep it that way. I think I remember it is somehow possible to redirect STDOUT (without doing so at the shell level). Can this be done in a way so that this redirection works for the programs called via system() as well? Thanks a lot, Benjamin -- If you want to know what god thinks of money, just look at the people he gave it to. -- Dorothy Parker -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>