Friday, 15 June 2012

python - Taking a function stdout output to shell and print it tkinter -



python - Taking a function stdout output to shell and print it tkinter -

i using pafy module download youtube videos,but in 1 of pafy functions, called "download" prints screen progress of download, take output , set in tkinter window.

here pafy function:

video = pafy.new(url) best_video = video.getbest(preftype="mp4") write_prog("started downloading "+video.title) best_video.download()

the lastly function("best_video.download()") 1 prints screen

any ideas of how that?

python printing tkinter

No comments:

Post a Comment