def tk_window_focus():
 if (rcParams['backend'] != 'TkAgg'):
  return False
 return rcParams['tk.window_focus']

def tk_window_focus ( ) : if ( rcParams [ 'backend' ] != 'TkAgg' ) : return False return rcParams [ 'tk.window_focus' ]
return true if focus maintenance under tkagg on win32 is on .