Connecting Tech Pros Worldwide Forums | Help | Site Map

Python For WinCE, Tkinter bug??

luke14free's Avatar
Member
 
Join Date: Apr 2007
Location: Italy, Milan
Posts: 88
#1: Jul 15 '07
Hello,
I want to develop a Windows Mobile application with Python and Tkinter (because it doesn't seem that other guy have been ported). I'm working on a Wm 5.0 pda, hp rx1955, using the pythonce 2.5 release with integrated python.
When i try to get this simple code running i get this result: python shell close itself without giving any error.

that's the code:
Expand|Select|Wrap|Line Numbers
  1. #!python 
  2. #HelloWorld.py
  3. import sys
  4. sys.path.append('\\Program Files\\Python\\Lib\\python25.zip\\lib-tk')
  5. import Tkinter
  6. root = Tkinter.Tk()
  7. l = Tkinter.Label(root, text="Hello, world!\nTkinter on PocketPC!\nSee http://pythonce.sf.net.")
  8. b = Tkinter.Button(root, text='Quit', command=root.destroy)
  9. l.pack()
  10. b.pack()
  11. root.mainloop()
  12.  
The first time I try to import Tkinter i get that msg: Error Could Not Find CeLib DLL. But if i try the code another time it seems to work until the window disappears

Thanks, luke14free

Reply