parameters: (root, flist)
docstring: This ensures that the application will respond to open AppleEvents, which
      makes is feasible to use IDLE as the default application for python files.
docstring_summary: This ensures that the application will respond to open AppleEvents, which
      makes is feasible to use IDLE as the default application for python files.
docstring_tokens: This ensures that the application will respond to open AppleEvents which makes is feasible to use IDLE as the default application for python files .
function: def addOpenEventSupport(root, flist):
      """
      This ensures that the application will respond to open AppleEvents, which
      makes is feasible to use IDLE as the default application for python files.
      """
      def doOpenFile(*args):
          for fn in args:
              flist.open(fn)
  
      # The command below is a hook in aquatk that is called whenever the app
      # receives a file open event. The callback can have multiple arguments,
      # one for every file that should be opened.
      root.createcommand("::tk::mac::OpenDocument", doOpenFile)
function_tokens: def addOpenEventSupport ( root , flist ) : def doOpenFile ( * args ) : for fn in args : flist . open ( fn ) # The command below is a hook in aquatk that is called whenever the app # receives a file open event. The callback can have multiple arguments, # one for every file that should be opened. root . createcommand ( "::tk::mac::OpenDocument" , doOpenFile )