OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio


Welcome Guest ( Log In | Register )

Personal Photo
Personal Statement
geojeff doesn't have a personal statement currently.
Personal Info
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
No Information
Joined: 9-March 05
Profile Views: 192*
Last Seen: 11th July 2007 - 05:45 AM
Local Time: Apr 26 2018, 07:55 AM
4 posts (0 per day)
Contact Information
AIM No Information
Yahoo No Information
ICQ No Information
MSN No Information
Contact Private
* Profile views updated each hour



My Content
18 Mar 2005
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.


Jeff Pittman
Last Visitors
geojeff has no visitors to display.

Other users have left no comments for geojeff.

There are no friends to display.
RSS Lo-Fi Version Time is now: 26th April 2018 - 05:55 AM