First app, thanks people

Jan Danielsson jan.danielsson at gmail.com
Mon Jul 25 10:04:17 EDT 2005


Hello all,

   I have written my first Python application (apart from small test
programs). It's a (distibuted) white board application. I'm going to
assume that there already are a thousand of them, written in Python, but
just in case someone would find it useful:

http://user.it.uu.se/~jada3673/applications.php
Direct link: http://user.it.uu.se/~jada3673/apps/whiteboard.py

   Since I'm a Python beginner, the code is very suboptimal. Anyway, I
believe it may be good reference code for beginners.

   Oh, I do have one more question though. I'm using wxPython, and when
I check for keys I use the evt.GetKeyCode() call, and compare it with
integers which I have found by printing what event.GetKeyCode() returns.
I would prefer a more portable way, since I assume that F1 doesn't have
the same code on a Sparc Ultra10. (?) Is there a way to get "key codes"
in wxPython in a portable manner?


   I'd also like to thank all of those who have helped me in this group,
and thank everyone else for the interresting discussions.

   As for license: Do whatever you want with it, but don't blame me if
it breaks anything or causes spontaneous pain, death or pregnancies.



More information about the Python-list mailing list