Using Tix "Out of the Box" with active python 2.3.2
by Mark Hammingh other posts by this author
Jul 22 2004 11:31PM messages near this date
view in the new Beta List Site
PythonWin debug assertion
|
Visual Python's speed slow while debugging OpenGL program
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C47044.00D3BCE0
Content-Type: text/plain
I have downloaded and installed ActivePython-2.3.2-232-win32-ix86.msi and am
expecting to be able to use tix widgets out of the box.
Could someone please tell me why the below code snippet generates an error?
C:\> python
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
> >> import Tix
> >> from Tkconstants import *
> >> root = Tix.Tk()
Traceback (most recent call last):
File "<stdin> ", line 1, in ?
File "C:\SWDEV\tools\python\lib\lib-tk\Tix.py", line 210, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix
> >>
__________________________________
Confidentiality Notice: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain information
that is confidential privileged and/or exempt from disclosure under
applicable law. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply e-mail and destroy all copies of the original message.
Thank you.
------_=_NextPart_001_01C47044.00D3BCE0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-US link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> I have downloaded and installed =
ActivePython-2.3.2-232-win32-ix86.msi
and am expecting to be able to use tix widgets out of the =
box.<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> Could someone please tell me why the below code =
snippet generates
an error?<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> <o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> <o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> C:\>python<o:p></o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> ActivePython 2.3.2 Build 232 (ActiveState Corp.) =
based on<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC =
v.1200 32 bit
(Intel)] on win32<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> Type "help", "copyright",
"credits" or "license" for more =
information.<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> >>> import Tix<o:p></o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> >>> from Tkconstants import =
*<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> >>> root =3D =
Tix.Tk()<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> Traceback (most recent call =
last):<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> File "<stdin>", line 1, in =
?<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> File =
"C:\SWDEV\tools\python\lib\lib-tk\Tix.py",
line 210, in __init__<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> self.tk.eval('package require =
Tix')<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> _tkinter.TclError: can't find package =
Tix<o:p> </o:p></span></font></p>
<p class=3DMsoNormal> <font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> >>><o:p> </o:p></span></font></p>
</div>
</body>
</html>
<BR>
<BR>
<BR>
<BR>
<BR>
<P> <FONT SIZE=3D2 FACE=3D"Arial">__________________________________ =
</FONT> </P>
<P> <B><FONT SIZE=3D2 FACE=3D"Arial">Confidentiality Notice:</FONT></B> =
<FONT SIZE=3D2 FACE=3D"Arial"> This e-mail message, including any =
attachments, is for the sole use of the intended recipient(s) and may =
contain information that is confidential privileged and/or exempt from =
disclosure under applicable law. Any unauthorized review, use, =
disclosure or distribution is prohibited. If you are not the intended =
recipient, please contact the sender by reply e-mail and destroy all =
copies of the original message. Thank you.</FONT> </P>
------_=_NextPart_001_01C47044.00D3BCE0--
Attachments:
unknown1
|