|
Page 3 of 5 |
|
Prev |
1 2 3
4 5
|
Next
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.
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
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.... |
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 |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
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? |
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. |
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?) |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
edit: Unless I've missed something Import PyQt is redundant considering you have PyQt.QtGui and PyQt.QtCore |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
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) |
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 |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Qt can handle multiple threads:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Is there any issues with me using GTK etc... other then it being messy? - or is it good practice not to mix and match when needed? :D - off out for a nice sunday dinner, back in a few hours :) |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
If this app is only meant to run on the N900, and older tablets then it probably won't matter, considering they all come with GTK preinstalled, but sticking to one makes things easier to port. I would imagine that sticking to one toolkit would make things run slightly faster (less modules to import).
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
thanks again asp. will look at changing newer versions when i learn more.
happy so far with a week or so's experience in this!! still waiting on dev registration..... s prob wont go in tonight. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
I use QT Threading in my app in the sig.
You're free to download it and review the code if you are interested in how to make that works. It's heavily based on emitting signals from within child threads. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
For your build_myapp.py
I'm not sure what all PyQt4 brings down... but I used specifically the modules I needed to make space.. so for example: python2.5-qt4-gui python2.5-qt4-webkit python2.5-qt4-core python2.5-qt4-network etc. ETA: This should save some space for users downloading your app since they only grab what they need.. not the whole PyQt4 bindings. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
really could do with a list of imports and next to each, state whic file is needed. would help newbies like me! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
awww i just wanna get it in to extras dev now :) - the wait is painful :P
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
I am pretty sure the approval will come on Monday. The same wait over the weekend happened to me as well...
Hartti |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
intrigued to know that there is a manual process, can't see any criteria though..... |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
python2.5-qt4-gui python2.5-qt4-core Another hint is that the module that a Qt class comes from is always listed at the top of that class's documentation page. |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
where would one get this app from. to test it out?
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Well.... i think i figured out the build process, and just got this in the garage!
Quote:
:D :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
LOL! - its in extras dev - but it fails on install, because, i think.... i added the line PyQT4 to the dependencies... genius fail!!!
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hmmm gonna try n repacakge one - but can't see how to remove it from dev, :D - oh the joys!
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Think i'm just going to confuse everyone now - assuming i need to log a bug to remove the old version (Aghhh, no bug account!)
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
OMG - It's done it again!!! - what the hell.... I told you i didn't understand the whole dependencies things!!
Quote:
Any ideas, anyone?! :D :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
i just tryed it. get same error |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
This time spelt python2.5-qt4-core not python-2.5-qt4-core Hoping thats the fix :D :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Oh well... back to the drawing board... it installs, but won't run - just crashes out after about 6 seconds.
edit - anyone else getting the same problems? - will have to look into the code tonight.... I know there are terminal warnings when i run it locally, but it does run..... |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
also just tryed it with a hard reboot and crashes out. hope u get this working man. looks like a nice tool
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
hehe thanks!
really not sure if i am just still missing dependencies. For example, i import gobject, does that mean in the build_myapp file i need to have pygobject in there? Really need qwerty and fatalsaint back in here :D :D Or, as it installs, that may mean it is fine, and something in the code is bugging out.... Not sure how to run it directly from terminal after it is installed through app manager? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Ok.. well i'm really just confused now, and not entirely sure what to do.
Is there a way to debug and find out why it won't run after installation? - when it runs fine locally? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
If anyone is testing (After installing it from extras-dev, warnings apply! - especially as this is my first application!) this can you please try running it from terminal:
Quote:
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
No one fancy testing it? - dont fancy removing all the dbus stuff and possibly gtk stuff - just confused as to why it runs ok with warnings locally, but must be erroring out from the utilities menu...
Tis odd :( (It does save a file during the run though - so it could be that erroring out? |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Ok, removed all traces of threading code - will run alot slower, but... hopefully that will fix it.
Just sent 0.4.2-3 to the Autobuilder :D |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Nope, still kicking out... so it must be the Cell/GPS/Dbus Information then....
Will try removing that and seeing if it works! |
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
0.4.2-3 still crashed for me. :(
|
Re: [Maemo 5] HealthCheck - Pymaemo/Qt - Learning to code (N900)
Quote:
Uploading to autobuilder in 2 mins... if that doesnt work, the last think i can think off is when i save the front cam image - may need to rethink where i do that.... |
| All times are GMT. The time now is 19:33. |
Page 3 of 5 |
|
Prev |
1 2 3
4 5
|
Next
vBulletin® Version 3.8.8