2004-11-18 02:53:31 PST
(This reply is probably too late for you, but maybe it'll help others.) I managed to install python and tkinter using the files Python-2.3.4-arm-PPC2003.zip and Tkinter-Files.zip dated 2004-07-21. I'm not a windows ce expert or a python expert, so this isn't necessarily the best way to do it, but it worked for me:
On your PocketPC, create the directory:
\Program Files\Python\Lib
Unzip Python-2.3.4-arm-PPC2003.zip on your desktop PC, and copy all of the files it contains to:
\Program Files\Python\Lib
on your Pocket PC.
Using the PocketPC file explorer, click on the following shortcut:
\Program Files\Python\Lib\Setup Registry
Which runs the Setup Registry.py script and installs the necessary registry entires to associate .py files with python.
Python is now installed. You can run it by clicking on the python exectuable (ie. \Program Files\Python\Lib\python) or by clicking on any .py file in the file explorer. You might also want to add it to your start menu, by selecting the executable in the file explorer, and choosing "copy" from the context menu, and then going to the directory:
\Windows\Start Menu\Programs
and choosing "paste shortcut" from the context menu.
Note: one thing that confused me at this point, is that if python is already running, clicking a .py file in file explorer will switch to the existing instance of python but will not run the script you have clicked on. If this happens, just exit the existing instance (by using Exit in the File menu) and try again.
Installing Tkinter was a little more tricky, but should be easy if you follow these instructions.
First unzip Tkinter-Files.zip on your desktop PC.
The zip file contains the following directories:
tcl8.4.3\library
tcl8.4.3\tk8.4
Windows
You should copy the contents of these directories to the following directories on the PocketPC:
tcl8.4.3\library -> \Program Files\Python\Lib\tcl8.4
tcl8.4.3\tk8.4 -> \Program Files\Python\Lib\tk8.4
Windows -> \Windows
The only problem now was that python couldn't import Tkinter, because it's default module paths didn't include it. There is probably a proper way to fix this, but I get around it by starting all of my Tkinter programs with:
import sys
sys.path += ['\\Program Files\\Python\\lib\\python23.zip\\lib-tk']
from Tkinter import *
Garry