[PythonCE] Tkinter in pythonce...

Stewart Midwinter stewart.midwinter at gmail.com
Sat Jan 7 04:49:39 CET 2006


Rodrigo, no desesperes!

Where do you have your python located?

You probably need to add some code that tells python where to look for
modules. you can do that with:
sys.path.append('\\SD Card\\Program Files\\Python\\Lib')
sys.path.append('\\SD Card\\Program Files\\Python\\Lib\\python23.zip\\lib-tk')

(of course, change that to the location where your python is located).

if you put the above into a file called sitecustomize.py in your
python folder, whenever it starts, it will read this file so you don't
have to put the code into your apps.

Inside your python folder, you should have a lib folder which contains
a pyton23.zip and a _tkinter.pyd. you may also have a
setup-registry.py, which will edit your registry so that you can just
double-click on python files to run them.

You may also want to look around for a copy of osce.py, which gives
you access to some of the features of the 'os' module on the desktop.

HTH
S


More information about the PythonCE mailing list