I've followed the helpful instructions here for using python (kopsis) and pyqt on the zaurus (5500), and have found by searching the forum postings how to use QPEApplication instead of QApplication (after about a month of development without a clue that it existed) and now my app is looking nice. It is for doing bird counts and includes a working GPS interface, using elements of the python code from gpsd and from pygps. One problem remains though: how to properly setup my app so that it can be restored after it looses focus, and how to give it a proper icon. I found postings that get close, it seems, and did the following:
1) put a script in /opt/QtPalmtop/bin called myapp that contains the line
"python /mnt/card/dev/myapp.py"
2) added the line
sys.argv[0] = "myapp"
just above the line
a = QPEApplication(sys.argv)
The startup script works, but, if my app looses focus when another app is run, clicking the terminal icon only brings up the terminal console where i fired the script.
So, I am asking for general help on the full steps needed to make a python/pyqt program act like a normal application, or at least to solve the focus problem. I don't know if it matters for this, but my rom is the sharp 3.13 version.
BTW, I really enjoy programming with pyqt, after years of Java dev with Swing, but having entered into a limbo on gui development since turning to python in the last couple of years. Nice to discover Qt and pyqt -- good docs and clean api.
Thanks,
Jeff Pittman