| Prev |   7     8   9   10     11   19 | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900) (https://talk.maemo.org/showthread.php?t=44576)

casper27 2010-02-21 14:52

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Be easier for people to help if they have a copy. I say get it in dev and let everyone have a look. Im sure qwerty12 will have some great suggestions once he has a go.

noobmonkey 2010-02-21 14:58

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by casper27 (Post 539713)
qwerty12 will have some great suggestions once he has a go.

Thats what I'm worried about lol.....

Don't want to release something half finished though and still need to deign an icon for it :)
will sort the tabs out now and remove the randoms......
Then look into how to get it into dev....

noobmonkey 2010-02-21 15:27

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
2 Attachment(s)
ok! v0.4.1 will be released to extras dev hopefully v soon.
cut put the extras that i will release at another time.

change the screen cam image so not to bore you all! hehehe

noobmonkey 2010-02-21 15:33

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Maemo Extras Assistant
Request sent

Your request has been mailed to the garage admins. You should receive an invitation when an admin approves your request.

Go back to the main page.
w000p will get working on the icon :D

noobmonkey 2010-02-21 16:10

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Need a hand from anyone who's built an app please!

Stuck with this example line in the build_myapp.py code
p.depends = "python2.5, PyQt4, python-osso, python-dbus, python2.5-gtk2"

The imports in my code are:
import PyQt4
from PyQt4 import QtCore, QtGui
import sys
import os
import subprocess
import location
import gobject
import gn_cellinfo
import gtk
import hildon

from threading import Thread
import time


Can someone let me know what i need to add to that line please?

aspidites 2010-02-21 16:46

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
I had an example on my N900 with stackable windows working with PyQt/PySide, but my N900 is in for repair and I didn't back up the information.

At any rate, I thought you might find the documentation helpful. (note the URL). This includes all of the maemo-specific classes of Qt 4.6, and a lot of them should easily translate to python. For Stacked Windows in particular, see this example.

In summary, I believe that the stacked window (the one that should have an arrow instead of an x) should be a child of the main window, and all should set the stacked window property.

noobmonkey 2010-02-21 16:53

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
heya, thanks i think, but that just confused me?!!?

i know what modules/classes i need, as the application works, but i don't understand the build_app.py
p.depends = "python2.5, PyQt4, python-osso, python-dbus, python2.5-gtk2"

QT ones are all covered under the PyQt4 line i think

i added python-location, hope that covers all of them, struggling to build it at the moment.
Kind of annoyed that once again things aren't simple! :) - would much rather a simple compile method :D (or maybe a gui step-by-step?)

aspidites 2010-02-21 16:54

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by noobmonkey (Post 539761)
Need a hand from anyone who's built an app please!

Stuck with this example line in the build_myapp.py code
p.depends = "python2.5, PyQt4, python-osso, python-dbus, python2.5-gtk2"

The imports in my code are:
import PyQt4
from PyQt4 import QtCore, QtGui
import sys
import os
import subprocess
import location
import gobject
import gn_cellinfo
import gtk
import hildon

from threading import Thread
import time


Can someone let me know what i need to add to that line please?

Why are you importing gtk and hildon? I'm mildly curious about gobject as well...

edit:
Unless I've missed something Import PyQt is redundant considering you have PyQt.QtGui and PyQt.QtCore

noobmonkey 2010-02-21 17:00

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
Quote:

Originally Posted by aspidites (Post 539800)
Why are you importing gtk and hildon? I'm mildly curious about gobject as well...

edit:
Unless I've missed something Import PyQt is redundant considering you have PyQt.QtGui and PyQt.QtCore


Meh - can you query my code after it has built lol!

That was all done by the QT Designer...

The GTK lot is for the multi-threading, gobject is for the GPS ... but again that's within the code, and should not affect the build, because i can run it fine on my device? - or am i heading in the wrong way?
(GTK Was for messageboxes that i currently have removed, also)

noobmonkey 2010-02-21 17:04

Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
 
ok, build complete :)
Gotta go out in 30 mins though - so until i get access to dev area, can't use autobuilder :P


| Prev |   7     8   9   10     11   19 | Next | Last
All times are GMT. The time now is 19:33.

vBulletin® Version 3.8.8