Configuring Python for Tk on Mac (continued)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martyn Quick

    #1

    Configuring Python for Tk on Mac (continued)

    From: Alex Martelli (aleaxit@yahoo. com)[color=blue]
    >
    > No idea about any 10.2, sorry, but on 10.3 that's not the problem: Tk
    > support is there alright, it's Tcl/Tk which _isn't_. Get MacPython, its
    > PackageManager will explain where to get Tcl/Tk Aqua from, as a prereq
    > for Tkinter and IDLE![/color]

    Ok, I've installed MacPython. It doesn't seem to work right though...
    for example, if I try to run the 00-HELLO-WORLD.py example then it
    crashes and tells me the IDE has unexpectedly crashed.

    I can't really see how to run things either. (I'm used to just typing
    "python" in a terminal on Unix but that seems to just run the version
    that comes pre-installed.)

    Sorry for not knowing much about Macs and being a bit clueless.

    Martyn
  • Kevin Walzer

    #2
    Re: Configuring Python for Tk on Mac (continued)

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Martyn Quick wrote:
    | From: Alex Martelli (aleaxit@yahoo. com)
    |
    |>No idea about any 10.2, sorry, but on 10.3 that's not the problem: Tk
    |>support is there alright, it's Tcl/Tk which _isn't_. Get MacPython, its
    |>PackageManage r will explain where to get Tcl/Tk Aqua from, as a prereq
    |>for Tkinter and IDLE!
    |
    |
    | Ok, I've installed MacPython. It doesn't seem to work right though...
    | for example, if I try to run the 00-HELLO-WORLD.py example then it
    | crashes and tells me the IDE has unexpectedly crashed.
    |
    | I can't really see how to run things either. (I'm used to just typing
    | "python" in a terminal on Unix but that seems to just run the version
    | that comes pre-installed.)
    |
    | Sorry for not knowing much about Macs and being a bit clueless.
    |
    | Martyn

    You need to install Tk Aqua at this site:

    Download Tcl/Tk Aqua Batteries-Included for free. Tcl/Tk Aqua Batteries-Included is a binary distribution of the Mac OS X native Tcl/Tk and many popular extensions.


    You then need to install the tkinter bindings using Package Manager,
    which comes as part of the Macpython distribution.

    IDLE then should run fine.

    Also, you can't run Python gui programs by typing "python" in the
    console on the Mac: either double-click the script, or use "pythonw" as
    the launching program in the terminal.


    - --
    Cheers,

    Kevin Walzer, PhD
    WordTech Software--Open Source Applications and Packages for OS X


    Guia completo de cassinos online para jogadores brasileiros. Análises, bônus e dicas de especialistas.

    mailto:sw@wordt ech-software.com
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (Darwin)
    Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

    iD8DBQFB+WXEJmd Qs+6YVcoRAg5rAJ 4zJYRVvEe0wvT3Z IJLwa79Am90CACd Feiv
    NXU/lT4hYVCPCtU6bGE Wc40=
    =+Q7e
    -----END PGP SIGNATURE-----

    Comment

    Working...