docs: 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)