def main():
    """This demo shows the main features of the pythondialog Dialog class.

    """
    try:
        demo()
    except dialog.error, exc_instance:
        sys.stderr.write("Error:\n\n%s\n" % exc_instance.complete_message())
        sys.exit(1)
        
    sys.exit(0)
def main ( ) : try : demo ( ) except dialog . error , exc_instance : sys . stderr . write ( "Error:\n\n%s\n" % exc_instance . complete_message ( ) ) sys . exit ( 1 ) sys . exit ( 0 )
This demo shows the main features of the pythondialog Dialog class.