(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.
This ensures that the application will respond to open AppleEvents, which
    makes is feasible to use IDLE as the default application for python files.
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 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)
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 )