[PythonCE] Q: still problem with Tkinter
Ralf Ackermann
rac at KOM.tu-darmstadt.de
Sun Jul 18 22:55:18 CEST 2004
many thanks!
adding:
import sys
sys.path.append('\\Program Files\\Python\\lib\\Python23.zip\\lib-tk')
at the very beginning of my program worked like a charm.
best regards
Ralf
> >What do I miss? Any hint from somebody who suceeded with Tkinter usage
> >(either in interactive mode or from a .py source) would be very helpful.
> >
>
> You need to add to sys.path the directory where the Tkinter.pyc is located. Andlthat is:
> '\\Program Files\\Python\\lib\\Python23.zp\\lib-tk'
>
> You should add it with "sys.path.append()"
>
> After I wrote this I relized that you unziped the files. So in that case the folder to append to sys.path should be.
> '\\Program Files\\Python\\lib\\lib-tk'
More information about the PythonCE
mailing list