Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - geojeff

Pages: [1]
1
New products and alternatives / New Zaurus Successor?
« on: April 04, 2007, 11:01:10 am »
I didn't see this posted in this thread:

http://www.pocketables.net/2007/03/new_touchscreen.html

The link to the source of the statement doesn't hit a page at http://blog.icube.us, and I couldn't find it by searching there.

I'd be interested in touchscreen functionality for quick data entry using selection list and custom widgets, which I had working on the Z using pyQt.

2
Python / Installing App In Qtopia
« on: April 11, 2005, 09:28:40 am »
I just checked the script for my app in /home/QtPalmtop/bin and it only has one line:

python /mnt/card/dev/myapp.py

(/mnt/card/dev is where i do my work and store my program).

I think I ran into this same problem and got it to work this way, which gets around the permissions problem.

Jeff

3
Python / Pyqt Application Setup
« on: March 18, 2005, 01:31:22 pm »
- added the .desktop file in /opt/QtPalmtop/apps/Applications (used a script in /opt/Qtopia/bin to call "python /mnt/card/dev/myapp.py")

- found the home for the icons under the pics dir of /opt/Qtopia and added a 32x32 png

- rebooted

And, Presto, I have my normally behaving app.

Thanks!

4
Python / Pyqt Application Setup
« on: March 18, 2005, 11:37:11 am »
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

Pages: [1]