• [^] # Re: Dans ce cas

    Posté par (site web personnel) . En réponse au message compilateur. Évalué à 1.

    c'est à quel moment ?
    tu as quelle version de python d'installée ?
    si c'est la 2.3, c'est celle qui vient directement de python ou ActivePython ?

    Est-ce que ca marche ?
    C:\temp>cat Hello.py
    #!/usr/bin/env python

    import Tkinter

    l = Tkinter.Label(text = "Hello World")
    b = Tkinter.Button(text = "quit", command = "exit")
    l.pack()
    b.pack()
    l.mainloop()

    C:\temp>cat HelloSetup.py
    #!/usr/bin/env python

    from distutils.core import setup
    import py2exe

    setup(name = "Hello TK", version = "0.1", scripts = ["Hello.py"])

    python HelloSetup.py py2exe