Skip to content

Instantly share code, notes, and snippets.

@tesfabpel
Created June 6, 2017 11:48
Show Gist options
  • Save tesfabpel/a389108eb7ac75ae2acc80a4ed8fdfa6 to your computer and use it in GitHub Desktop.
Save tesfabpel/a389108eb7ac75ae2acc80a4ed8fdfa6 to your computer and use it in GitHub Desktop.
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