You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kdialog/progresscanceldemo

12 lines
274 B

#!/bin/sh
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