Created
January 19, 2018 14:55
-
-
Save brunetton/8135db98380e8eee6ea4e572e257ade2 to your computer and use it in GitHub Desktop.
Ruby Zenity progress bar
This file contains 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
zenity_with_options = 'zenity --progress --title="Working..." --text="Analyse des journaux de mail... --auto-close' | |
IO.popen(zenity_with_options.split(' '), 'w') do |io| | |
for i in 1..10 | |
io.puts(i * 10) | |
sleep(1) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment