471,310 Members | 1,495 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Python For WinCE, Tkinter bug??

luke14free
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
Jul 15 '07 #1
0 1378

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Logan | last post: by
reply views Thread by Adam McCarthy | last post: by
10 posts views Thread by Andrew Dalke | last post: by
1 post views Thread by John Chambers | last post: by
3 posts views Thread by pcm | last post: by
44 posts views Thread by jiang.haiyun | last post: by
8 posts views Thread by karthikbalaguru | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.