
rxtry allows you to enter REXX statements interactively.

--------------------- cut here ----------------------
#!/usr/bin/regina

    say '  exit to exit'

RESTART:
    SIGNAL ON SYNTAX
    do forever
        call charout , '> '
        ?command = linein()
        interpret  ?command
    end

SYNTAX:
    say 'REXX error...'  RC  '('errortext(RC)')'
    signal restart
--------------------- cut here ----------------------

This will create a button:

$ rxtry
call RxFuncAdd 'TkLoadFuncs','rexxtk','TkLoadFuncs'
call TkLoadFuncs
b=tkbutton('.b','-command','puts hello','-text','SAY HI')
call tkpack b
call tkwait

