LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   stdout with tk? (https://www.linuxquestions.org/questions/programming-9/stdout-with-tk-77299/)

sk8guitar 07-30-2003 09:55 AM

stdout with tk?
 
hey, i am just messing around with tk and using a freedb module. so i got everything to be fine and dandy, and it'll print what you want, but not in the text widget. it will print in the command line that you opened the program from.

the module i am using has a function that prints to stdout. how can i change stdout in tk from the command prompt to the text widget?

sk8guitar 07-30-2003 02:48 PM

i ended up writing to a temporary file and then re-reading it back in to the text widget, but thats a waste i think. and not nearly as cool.


All times are GMT -5. The time now is 07:27 PM.