hatari/python-ui/hatariui

32 lines
974 B
Plaintext
Raw Normal View History

#!/bin/sh
#
path=${0%/*}
name=${0##*/}
2010-03-06 20:54:19 +00:00
if [ ! -e $path/$name.py ]; then
# Assume package has been relocated, try relative data directory:
path=${0%/*}/../share/hatari/hatariui
fi
# example setup for Hatari UI
$path/$name.py --right "about,|,run,pause,forward,|,reset,|,quit" --embed $*
exit 0
2008-07-06 21:17:11 +00:00
# test setup without embedding, dupplicate toggles
$path/$name.py --top "about,run,pause,quit" \
2008-07-06 21:17:11 +00:00
--panel "Testpanel,pause,>,close" \
--bottom "sound,|,pause,|,fast,|,Testpanel" \
$*
exit 0
2008-07-06 21:17:11 +00:00
# test setup with embedding and all available controls
$path/$name.py --embed \
--top "about,|,run,pause,|,reset,debug,|,quit" \
--left "run,pause,reset,machine,about" \
--panel "Keys,F1=59,F2=60,F3=61,F4=62,F5=63,F6=64,F7=65,F8=66,F9=67,F10=68,>,Macro=Test,Undo=97,Help=98,Enter=114,>,close" \
--panel "Misc,fast,|,full,|,sound,>,shot,>,close" \
--bottom "fast,full,Misc,Keys,input,devices,display,debug,trace" \
--right "fast,full,Misc,Keys,input,devices,display,Help=98" \
$*
exit 0