dolphin/kdialog/progresscanceldemo
Brad Hards 41f60436fe A couple of simple shell script examples showing off how to use the new
--progressbar dialog in kdialog, which was recently implemented by
Stephen Binner. I also have an update to the main kdialog tutorial, but
need to rebuild it first.

svn path=/trunk/kdebase/kdialog/; revision=322729
2004-06-22 07:17:14 +00:00

11 lines
265 B
Plaintext
Executable file

dcopRef=`./kdialog --progressbar "Press Cancel at Any time" 10`
dcop $dcopRef showCancelButton true
until test "true" == `dcop $dcopRef wasCancelled`; do
sleep 1
inc=$((`dcop $dcopRef progress` + 1))
dcop $dcopRef setProgress $inc;
done
dcop $dcopRef close