I made this python program that is copying large files using robocopy. I want to pass the progress that robocopy shows in console to a tkinter label. Sadly i can't quite understand how to do that.
selection_platf= len(os.name)
def copy_build_button():
if selection_platf < 11:
subprocess.call(["robocopy", src , dest , r"/XF", 'BSyncPackage.zip', "/S"])
else: #for linux
subprocess.call(["robocopy", src2 , dest , "/S"])
def copy_thread():
thread_1 = threading.Thread(target=copy_build_button)
thread_1.start()
When i press the copy button the "copy_thread" function is called and starts a thread with the robocopy code. As i said above, i want to somehow pass the robocopy progress output from console to a label.
Thanks.