def Win32RawInput(prompt=None):
 try:
  sys.stdout.flush()
  sys.stderr.flush()
 except:
  pass
 if (prompt is None):
  prompt = ''
 ret = dialog.GetSimpleInput(prompt)
 if (ret == None):
  raise KeyboardInterrupt('operation cancelled')
 return ret

def Win32RawInput ( prompt = None ) : try : sys . stdout . flush ( ) sys . stderr . flush ( ) except : pass if ( prompt is None ) : prompt = '' ret = dialog . GetSimpleInput ( prompt ) if ( ret == None ) : raise KeyboardInterrupt ( 'operation cancelled' ) return ret
provide raw_input() for gui apps .