Re: ActiveState Python v2.5 doesn't come with Tkinter or Tk installed.



On Thu, Aug 14, 2008 at 1:20 PM, Russell E. Owen <rowen@xxxxxxxxxxxxxxxx> wrote:
In article <mailman.1599.1218728477.922.python-list@xxxxxxxxxx>,
"Dudeja, Rajat" <rajat.dudeja@xxxxxxxxxxxx> wrote:

Hi,

So, now I've finally started using Eclipse and PyDev as an IDE for my
GUI Application. I just wrote some sample programs as an hands on.

Now I would like to take up Tkinter. I'm using Active State Python
version 2.5 and found that there is not Tkinter and Tk module in it.

To use Tkinter do I actually require Tk installed on my machine? Please
suggest and where can I find both these modules?

Also, please direct me to a good and short document on using Tkinter or
Tk in Python.

What operating system?

For MacOS X this should not happen because Tcl/Tk is already available.
But the best Python for MacOS X is the binary installer from python.org
and the best Tcl/Tk is ActiveState version 8.4.19 (the Tcl/Tk that comes
with MacOS X 10.4 and 10.5 is rather old and buggy).

For Windows: the standard python.org binary Python includes its own
Tcl/Tk. So the simplest solution is to use that. I know nothing about
ActiveState's Python for Windows but it is possible that it requires
ActiveState Tcl/Tk to use Tkinter.

For unix: I'm not sure about ActiveState and unix. But the standard
package installer that comes with your unix should offer tcl/tk, python
and _tkinter (possibly as 3 separate packages, possibly not) and at
least tcl/tk and python should be installed by default.

In general ActiveState puts out a very nice Tcl/Tk installer that
includes many useful extra packages. But I've never seen the point to
ActiveState's Python installer. When I last tried it, their Python was
missing readline and did not add any useful packages to the standard
python.org version.

For info on Tkinter: <http://wiki.python.org/moin/TkInter>

-- Russell

P.S. if you do install Tcl/Tk to use with Tkinter, please use 8.4.x, NOT
8.5. Python 2.5.x is not fully compatible with Tcl/Tk 8.5.

Could you clarify what you mean when you say "not fully compatible
with Tcl/Tk 8.5" ?

--
http://mail.python.org/mailman/listinfo/python-list




--
-- Guilherme H. Polo Goncalves
.



Relevant Pages

  • Re: ActiveState Python v2.5 doesnt come with Tkinter or Tk installed.
    ... Now I would like to take up Tkinter. ... I'm using Active State Python ... For MacOS X this should not happen because Tcl/Tk is already available. ... But the best Python for MacOS X is the binary installer from python.org ...
    (comp.lang.python)
  • Re: Unix-head needs to Windows-ize his Python script
    ... You can't assume that any windows machine with Python installed also ... "assuming" is Tkinter. ... I didn't mean to imply that wxPython is in the standard library. ... "standard" Windows installer and the ActiveState windows installer. ...
    (comp.lang.python)
  • Re: Looking for help getting tkinter to work.
    ... Cannot get tkinter to work after compiling & installing Tcl/Tk. ... "Python build finished, but the necessary bits to build these modules ...
    (comp.lang.python)
  • Re: Tkinter & Python 2.5 Problems on MAC OS 10.3.9
    ... Linguistics and I am a python user. ... But when I try to import Tkinter ... Where is your installation of Tcl/Tk? ...
    (comp.lang.python)
  • Re: Bug(s) in Python 3.1.1 Windows installation
    ... The compiler then found a few syntax errors apparently in some text conversion test programs, and finally a message box popped up saying that "There is a problem with this Windows Installer Package", ... and the main installation dialog then reported "Python 3.1.1 installer ended prematurely. ... Tkinter not bundled, misleading & incomplete documentation. ...
    (comp.lang.python)