def GetActiveView():
 try:
  (childFrame, bIsMaximised) = win32ui.GetMainFrame().MDIGetActive()
  return childFrame.GetActiveView()
 except win32ui.error:
  return None

def GetActiveView ( ) : try : ( childFrame , bIsMaximised ) = win32ui . GetMainFrame ( ) . MDIGetActive ( ) return childFrame . GetActiveView ( ) except win32ui . error : return None
gets the edit control with the focus .