root = Tkinter.Tk()
procid = next(iter(procidset() - idset))
applescript(
    """
    tell app "System Events"
        repeat with proc in every process whose name is "Python"
            if id of proc is """
     + procid +
    """ then
                set frontmost of proc to true
                exit repeat
            end if
        end repeat
    end tell"""
    )
Как заставить окно прыгать вперед?