Created
June 6, 2017 11:48
-
-
Save tesfabpel/a389108eb7ac75ae2acc80a4ed8fdfa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import subprocess as sp | |
enc = 'UTF-8' | |
p = sp.Popen(['dialog', '--gauge', 'hello', '6', '75', '0'], stdin=sp.PIPE) | |
for i in range(0, 100): | |
p.stdin.write(bytes(str(i)+"\n", enc)) | |
p.stdin.flush() | |
time.sleep(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment