#! /usr/bin/env mpscript # # A test script for the mpscript utility. # def dialog_handler( text_prompt, gui_prompt, button ): sys.stdout.write( "The prompt is '%s' " % text_prompt ) sys.stdout.flush() Mp.getch() print( "" ) def main( record_list, argv ): Mp.set_info_dialog_function( dialog_handler ) while ( 1 ): print( "Looping..." ) Mp.info_dialog( "Hit a key -> ", "Push the button", "OK" )