parameters: (cls)
docstring: Call win32 API to refresh the whole Window.
  
          This is sometimes necessary when the application paints background
          for completion menus. When the menu disappears, it leaves traces due
          to a bug in the Windows Console. Sending a repaint request solves it.
docstring_summary: Call win32 API to refresh the whole Window.
docstring_tokens: Call win32 API to refresh the whole Window .
function: def win32_refresh_window(cls):
          """
          Call win32 API to refresh the whole Window.
  
          This is sometimes necessary when the application paints background
          for completion menus. When the menu disappears, it leaves traces due
          to a bug in the Windows Console. Sending a repaint request solves it.
          """
          # Get console handle
          handle = HANDLE(windll.kernel32.GetConsoleWindow())
  
          RDW_INVALIDATE = 0x0001
          windll.user32.RedrawWindow(handle, None, None, c_uint(RDW_INVALIDATE))
function_tokens: def win32_refresh_window ( cls ) : # Get console handle handle = HANDLE ( windll . kernel32 . GetConsoleWindow ( ) ) RDW_INVALIDATE = 0x0001 windll . user32 . RedrawWindow ( handle , None , None , c_uint ( RDW_INVALIDATE ) )