rendered paste body#!/usr/bin/wxbasicscript
include "/usr/lib/wxbasicscript/basefunctions.inc"
dialog = "--title 'MENU BOX' "&
" --menu 'Choose your game "&
" \n\nWhat game do you want to play?' 280x280 10 "&
" './canfield' 'canfield solitaire' "&
" './freecell' 'freecell solitaire' "&
" './golf' 'golf solitaire' "&
" './mastermind' 'mastermind' "&
" './minesweeper' 'minesweeper' "&
" './pegged' 'pegged' "&
" './solitaire' 'solitaire' "&
" './taipedit' 'taipei editor' "&
" './taipei' 'taipei' "&
" './thornq' 'thornq solitaire'"
result , choice = xdialog ( dialog )
if result = 0 then
shell ( choice & " &" )
else
xdialog ( "--title 'info' --msgbox 'exiting' 0 0" )
end if