def setup_master(master=None):
 if (master is None):
  if Tkinter._support_default_root:
   master = (Tkinter._default_root or Tkinter.Tk())
  else:
   raise RuntimeError('No master specified and Tkinter is configured to not support default root')
 return master

def setup_master ( master = None ) : if ( master is None ) : if Tkinter . _support_default_root : master = ( Tkinter . _default_root or Tkinter . Tk ( ) ) else : raise RuntimeError ( 'No master specified and Tkinter is configured to not support default root' ) return master
if master is not none .