Nope, spoke too soon! The Pocket PC seemed to be doing something and I thought it was OK - obviously you can't just copy "lib-tk" into the Pocket PC Python\Lib directory.
What else might I be missing? Peter "Peter Milliken" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thanks for the reply Matt - you must have customised things though from the > distribution because this can't (and doesn't! :-)) work i.e. I have > (already) placed the python23.zip into \Program Files\Python\Lib but there > is no lib-tk off that point (which is what I believe the .append instruction > does in the customize script). > > In fact, looking at my Python24 installation on my PC, I can see a lib-tk > directory off c:\Python24\Lib - but there is no such directory on my Pocket > PC - can I just "copy" this directory directly onto my Pocket PC? <see > below!> > > OK, copying the lib-tk directory over to my Pocket PC seems to make the file > work - thanks for the help! :-) > > Peter > > > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I'm using the same distribution (or at least that is what I started > > with). Try using the following sitecustomize.py file: > > > > ###### sitecustomize.py ###### > > import sys > > syspath = sys.path > > libpath = '\\Program Files\\Python\\Lib' > > syspath.append(libpath+'\\lib-tk') > > sys.path = none > > sys.path = syspath > > ############################## > > > > You will need to extract the python23.zip into \Program > > Files\Python\Lib, then add the sitecustomize.py file to the same > > directory. Then Python should be able to find the Tkinter module that > > it is complaining about. > > > > - Matt > > > > -- http://mail.python.org/mailman/listinfo/python-list