Active Topics

 


Reply
Thread Tools
Posts: 193 | Thanked: 201 times | Joined on Dec 2009 @ Subotica, Serbia
#101
Originally Posted by attila77 View Post
However, due to a few changes PR1.2 will bring, I need a few volunteers. PR1.2 will leave out a few modules to conserve space and this means the Examples package (python2.5-qt4-doc) needs a bit of love before it can be released for PR1.2. Long story short, help is welcome to rid the demo application of any QtHelp, QtAssistant or QtDesigner dependencies (as said above, they will not be in PR1.2), and is an excellent way to brush up on your Python-Qt skills.
I would like to help.
Didn't do anything for maemo yet. Done a few smaller applications with PyQt, and a few more with python.
If you can use me, please send me a pm with details, and I'll help as much as I can.
 

The Following 2 Users Say Thank You to mmlado For This Useful Post:
Posts: 292 | Thanked: 131 times | Joined on Dec 2009
#102
Originally Posted by attila77 View Post
Yes, dear friends, the wait is over, this is the real deal, PyQt 4.7 is available for the masses !

(...)
  • PyQt4 Demo Python Qt bindings demos, examples and documentation

    This package contains Python-specific documentation for PyQt4
    and the Qt example programs ported to Python. It provides a
    reasonable minimum set of modules and bindings to start PyQt
    development. Installing this package will install Python
    bindings for the QtCore, QtGUI, QtXML and QtHelp modules.
@attila77: Do you mean the "python2.5-qt4-doc" application?
If not, what is the package name?

When I try to install "python2.5-qt4-doc" I get the following error:

The following packages have unmet dependencies:
python2.5-qt4-doc: Depends: python2.5-qt4-help (= 4.7-maemo7) but it is not going to be installed
E: Broken packages
I believe I have PR1.2 SDK (how can I check it?) because I've just reinstalled it and then I've performed apt-get dist-upgrade.

it seems, however, that basic PyQT applications are working (I've just tried a hello world demo built with QTDesigner + puic4.

Any ideas?
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#103
The trolls made the choice of slimming Qt, so PR1.2 is missing the QtHelp module. Thus, the current demo package in Extras is not installable on the PR1.2 SDK (mmlado above volunteered to help with this, many thanks for that !). The modules that *are* present in PR1.2 work just fine, that’s why your hello world is okay. When PR1.2 is finally released I will upload the updated PyQt modules to the autobuilder and that will resolve this issue.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#104
The autobuilder prevents me from uploading this through regular channels, but for you hardcore PyQt hackers this should not be a problem, here's a PR1.1 compatible preview of the Qt4.6 version (with all QMaemo5 goodies). Warning - this is bleeding edge development stuff, use at own risk. You cannot have this and the Qt4.5 version of PyQt installed simultaneously.

http://web.atombiztos.hu/pyqt/pyqt-4.7.2-qt4-maemo5.tar

If you get SIP related errors, use these:
http://web.atombiztos.hu/pyqt/python...emo0_armel.deb
http://web.atombiztos.hu/pyqt/sip4_4...emo0_armel.deb

With all this, you can do stuff like:

Code:
#!/usr/bin/python

import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *
from PyQt4.QtMaemo5 import QMaemo5InformationBox

app = QApplication(sys.argv)
web = QMainWindow()
web = QWebView()  
web.setAttribute(Qt.WA_Maemo5PortraitOrientation, True)
web.load(QUrl('http://www.google.com')) 
web.show()
QMaemo5InformationBox.information(web, "Boxy !")
sys.exit(app.exec_())
Happy holidays !

EDIT: added SIP debs
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc

Last edited by attila77; 2010-04-16 at 17:04.
 

The Following 4 Users Say Thank You to attila77 For This Useful Post:
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#105
Atilla

Now that I have my Qt4.5 stuff finished and pushed to extras testing,
I'm going to play with this bleeding qt4.6 stuff this weekend. here is what I assume I need to do.

1. Uninstall pyqt 4.5
2. Uninstall Qt4.5
3. install your bleeding package above.

test my apps

have I missed anything?
Any reason why not just push these bleeding debs into the repos?
__________________
N900_Email_Options Wiki Page

Last edited by mikec; 2010-04-16 at 11:34.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#106
Don't touch qt4.5, that will hurt. My sort-of recommended procedure (not for the faint hearted, be careful especially if apt offers to REMOVE packages, that should not happen !) would be:

dpkg -l | grep python2.5-qt4
dpkg -i [deb files of packages listed above] python2.5-qt4-maemo5...deb
apt-get install -f

and that's it, for PR1.1. If you remove qt4.5 you might remove a LOT of things you don't want to The bleeding edge packages will use qt4.6 and will coexist with qt4.5. Removing old pyqt packages is not necessary (plus can get tricky if you have apps that depend on them), the new ones will overwrite them and shuld be backward compatible (as much as Qt is).

EDIT:
Any reason why not just push these bleeding debs into the repos?
The (usual) PR1.2 SDK problem. If I upload to the autobuilder with Qt4.6 features enabled, you will not be able to install the debs on a device with PR1.1
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc

Last edited by attila77; 2010-04-16 at 12:11.
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#107
ok here is the list of packages now in my N900 after installing.
does this look right

ii python2.5-qt4-common 4.7.2-maemo0 Shared files for PyQt4
ii python2.5-qt4-core 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-dbus 4.7.2-maemo0 Python bindings for Qt dbus mainloop.
ii python2.5-qt4-dev 4.7.2-maemo0 Development files for PyQt4
ii python2.5-qt4-gl 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-gui 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-maemo5 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-network 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-phonon 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-script 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-sql 4.7.2-maemo0 Python bindings for PyQt4's SQL module
ii python2.5-qt4-svg 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-test 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-webkit 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-xml 4.7.2-maemo0 Python bindings for Qt4 Core components.
ii python2.5-qt4-xmlpatterns 4.7.2-maemo0 Python bindings for Qt4 Core components.

it seems to have problems with python2.5-qt4-dev-tools only


And when I run nclock I get

Traceback (most recent call last):
File "nclock.py", line 3, in <module>
from PyQt4 import QtCore
RuntimeError: the sip module implements API v7.0 but the PyQt4.QtCore module requires API v7.1
__________________
N900_Email_Options Wiki Page

Last edited by mikec; 2010-04-16 at 16:01.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#108
Ah, forgot about SIP getting outdated, try this:

http://web.atombiztos.hu/pyqt/python...emo0_armel.deb
http://web.atombiztos.hu/pyqt/sip4_4...emo0_armel.deb
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc

Last edited by attila77; 2010-04-16 at 17:04.
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#109
OK that runs

Stacked windows have changed, ie its not stacking anymore, cpu seems to have gone up. And now I see the truncation in the buttons on Ncalc.

Will have a poke around over the weekend. Cant wait to play with portrait mode
__________________
N900_Email_Options Wiki Page
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#110
Stacking changed in Qt4.6 (and thus in PyQt), it’s no longer regulated by parent relations, but by an attribute (similar to the orientation stuff in my example), see http://qt.nokia.com/doc/qt-maemo-4.6...edwindows.html

EDIT: In fact, here’s all the Maemo5 specific stuff that is new with Qt4.6 (the examples and docs are for C++ but PyQt follows it fairly well):

http://qt.nokia.com/doc/qt-maemo-4.6...es-maemo5.html
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc

Last edited by attila77; 2010-04-16 at 17:34.
 

The Following User Says Thank You to attila77 For This Useful Post:
Reply

Tags
development, pyqt, pyside, python, qt4


 
Forum Jump


All times are GMT. The time now is 07:15.