def setupApp(root, flist):
 if isAquaTk():
  hideTkConsole(root)
  overrideRootMenu(root, flist)
  addOpenEventSupport(root, flist)
  fixb2context(root)

def setupApp ( root , flist ) : if isAquaTk ( ) : hideTkConsole ( root ) overrideRootMenu ( root , flist ) addOpenEventSupport ( root , flist ) fixb2context ( root )
perform initial os x customizations if needed .