[Tutor] Tcl path for Tkinter

Praveen Pathiyil ppathiyi@cisco.com
Tue, 15 May 2001 14:25:12 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0484_01C0DD4A.DA5732C0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

 Hi all,
    I am trying to run my first GUI program in python using the Tkinter. =
But when i am running the code, iam getting an error...

**********************************************************************
   top =3D Tkinter.Tk()
  File "/sw/packages/python/1.5.2/lib/python1.5/lib-tk/Tkinter.py", line =
886, in __init__
    self.tk =3D _tkinter.create(screenName, baseName, className)
TclError: Can't find a usable init.tcl in the following directories:
./share/tcl8.0 /users/ppathiyi/share/tcl8.0 ./tcl8.0/library ./library



This probably means that Tcl wasn't installed properly.
**********************************************************************

But Tcl is infact installed in our system. So is there any place where i =
should specify the path for the Tcl executable ?

TIA,
Praveen.

------=_NextPart_000_0484_01C0DD4A.DA5732C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&nbsp;Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; I am trying to run =
my=20
first&nbsp;GUI program in python using the Tkinter. But when i am =
running the=20
code, iam getting an error...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>****************************************************************=
******</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; top =3D =
Tkinter.Tk()<BR>&nbsp; File=20
"/sw/packages/python/1.5.2/lib/python1.5/lib-tk/Tkinter.py", line 886, =
in=20
__init__<BR>&nbsp;&nbsp;&nbsp; self.tk =3D _tkinter.create(screenName, =
baseName,=20
className)<BR>TclError: Can't find a usable init.tcl in the following=20
directories:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>./share/tcl8.0 =
/users/ppathiyi/share/tcl8.0=20
./tcl8.0/library ./library</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This probably means that Tcl wasn't =
installed=20
properly.<BR>************************************************************=
**********</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But Tcl is infact installed in our =
system. So is=20
there any place where i should specify the path for the Tcl executable=20
?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>TIA,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Praveen.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0484_01C0DD4A.DA5732C0--