Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2db8782f950ad34a4cc3bc57c6c13335 > files > 8

enity-0.0.1-8mdv2010.0.i586.rpm

Enity - Create Etk dialogs using scripts

Enity allows users to create Etk dialogs using shell scripts or other
scripting languages that can call programs. The basic idea is to ease the
development of quick interfaces for input, configuration, installation, etc...

Examples:

enity --list \
      --title='Resolution' \
      --text='Select your prefered resolution' \
      --column='Num' --column='Option' \
      '1' '1920x1440' \
      '2' '1856x1392' \
      '3' '1792x1344' \
      '4' '1600x1200' \
      '5' '1280x1024' \
      '6' '1280x960'  \
      '7' '1280x800'  \
      '8' '1280x768'  \
      '9' '1152x864'  \
      '10' '1024x768' \
      '11' '800x600'  \
      '12' '640x480'
      
enity --list \
      --checklist \
      --title='Resolution' \
      --text='Select your prefered resolution' \
      --column='Num' --column='Option' \
      '1' '1920x1440' \
      '2' '1856x1392' \
      '3' '1792x1344' \
      '4' '1600x1200' \
      '5' '1280x1024' \
      '6' '1280x960'  \
      '7' '1280x800'  \
      '8' '1280x768'  \
      '9' '1152x864'  \
      '10' '1024x768' \
      '11' '800x600'  \
      '12' '640x480'      

enity --entry \
      --text "Please enter username:" \
      --entry-text "username"
      
enity --warning \
      --text 'Low disk space!'
      
enity --info \
      --text 'Installation complete!'

enity --question \
      --text 'Are you sure you want to proceed?'
      
enity --error \
      --text 'Could not detect your VGA card!'
            
enity --scale \
      --value 40 \
      --max-value 120 \
      --text 'Selelect refresh rate'

enity --progress \
      --text "Copying files..."
      
then enter a value on stdin and press enter to see bar update.