Reply
Thread Tools
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#1
I have released PyQt 4.7.3 for Qt4.6 to extras-devel, and it will be available to the general public (=Extras) a few (10) days after the release of PR1.2

When these packages reach Extras, they should replace the old packages seamlessly, no user interaction needed.

The N800, N810 and N900 (up to and including PR1.1.1 firmware) are supported in another thread.

Changes from the previous PyQt4.7 PR1.1 release:
  • Full Qt4.6 support
  • Support for the QMaemo5 module and Maemo specific classes
  • Skeleton for Qt4.7 support when in shows up in extras-devel
  • Lib size reduced ~10% across all modules
  • Removed support for QtHelp, QtAssistant and QtDesigner as these are no longer supported in PR1.2 (indirectly this made the 'Full Install' package smaller)
  • Removed QtHelp dependency from the demo package, this in turn made make the 'demo/starter pack' a lot smaller.
  • Demo package updated with screenshots and the annoying 'missing docs' messagege has been removed. Say thanks to mmlado, he did all the work on this and the previous point.
  • Serious improvements to the OpenGL module (faster, prettier, works on both armel & X86)

PyQt (obviously) needs Qt to work. While PyQt itself is optified, Nokia made the choice of putting Qt on the root partition, i.e. installing PyQt indirectly WILL take up about 10-15MB of root space if you do not already have the respective Qt modules installed.

There are two installable packages. For those who do not read package descriptions, here's the excerpt:
  • PyQt4 Full Install - This package contains the python extensions

    You need to install this package explicitly ONLY if you wish
    to tinker with Python yourself.

    Installing this package will install Python bindings for ALL
    available Qt modules, namely: QtCore, QtDBus,
    QtGui, QtNetwork, phonon, QtSql, QtSVG,
    QtScript, QtTest, QtWebkit, QtOpenGL, QtXML, QtXMLPatterns

  • 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 and QtXML modules.

The two are independently installable, order of (un)installing does not matter.

Original sources and (a lot more) documentation available at
http://www.riverbankcomputing.co.uk/software/pyqt/intro
Attached Images
 
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc

Last edited by attila77; 2010-04-27 at 19:19.
 

The Following 14 Users Say Thank You to attila77 For This Useful Post:
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#2
Originally Posted by attila77 View Post
I have released PyQt 4.7.3 for Qt4.6 to extras-devel, and it will be available to the general public (=Extras) a few (10) days after the release of PR1.2

When these packages reach Extras, they should replace the old packages seamlessly, no user interaction needed.

The N800, N810 and N900 (up to and including PR1.1.1 firmware) are supported in another thread.

Changes from the previous PyQt4.7 PR1.1 release:
  • Full Qt4.6 support
  • Support for the QMaemo5 module and Maemo specific classes
  • Skeleton for Qt4.7 support when in shows up in extras-devel
  • Lib size reduced ~10% across all modules
  • Removed support for QtHelp, QtAssistant and QtDesigner as these are no longer supported in PR1.2 (indirectly this made the 'Full Install' package smaller)
  • Removed QtHelp dependency from the demo package, this in turn made make the 'demo/starter pack' a lot smaller.
  • Demo package updated with screenshots and the annoying 'missing docs' messagege has been removed. Say thanks to mmlado, he did all the work on this and the previous point.
  • Serious improvements to the OpenGL module (faster, prettier, works on both armel & X86)

PyQt (obviously) needs Qt to work. While PyQt itself is optified, Nokia made the choice of putting Qt on the root partition, i.e. installing PyQt indirectly WILL take up about 10-15MB of root space if you do not already have the respective Qt modules installed.

There are two installable packages. For those who do not read package descriptions, here's the excerpt:
  • PyQt4 Full Install - This package contains the python extensions

    You need to install this package explicitly ONLY if you wish
    to tinker with Python yourself.

    Installing this package will install Python bindings for ALL
    available Qt modules, namely: QtCore, QtDBus,
    QtGui, QtNetwork, phonon, QtSql, QtSVG,
    QtScript, QtTest, QtWebkit, QtOpenGL, QtXML, QtXMLPatterns

  • 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 and QtXML modules.

The two are independently installable, order of (un)installing does not matter.

Original sources and (a lot more) documentation available at
http://www.riverbankcomputing.co.uk/software/pyqt/intro
Atilla77
Now that we have PR1.2, can you let us know what timescale you see for this stuff, or is it all there?
Also is there an easy way I can check for whether I am running on the device or my dev box. The PySide guys do this

Code:
try:
    from PySide.QtMaemo5 import *
    USE_MAEMO = True
except:
    USE_MAEMO = False
anything similiar for PyQt
__________________
N900_Email_Options Wiki Page
 

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

This Works for portrait mode
Code:
try : self.setAttribute(Qt.WA_Maemo5PortraitOrientation, True)
except:USE_MAEMO = False
But this is not doing anything for Stacked Windows,event though its executing it.

Code:
try :
            self.configWin.setAttribute(Qt.WA_Maemo5StackedWindow )
            print"stacked window"
            USE_MAEMO=True
except:
            USE_MAEMO=False
Anything I'm doing wrong on the stacked windows. Clearly I'm using Qt4.6 as rotation works
__________________
N900_Email_Options Wiki Page
 

The Following User Says Thank You to mikec For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#4
Originally Posted by mikec View Post
Atilla77
Now that we have PR1.2, can you let us know what timescale you see for this stuff, or is it all there?
There are some mixups with certain qt packages missing or having the wrong name. As soon as they land, we're good to go as far as I'm concerned..

Also is there an easy way I can check for whether I am running on the device or my dev box. The PySide guys do this

Code:
try:
    from PySide.QtMaemo5 import *
    USE_MAEMO = True
except:
    USE_MAEMO = False
anything similiar for PyQt
Err...

Code:
try:
    from PyQt4.QtMaemo5 import *
    USE_MAEMO = True
except:
    USE_MAEMO = False
?

Originally Posted by mikec View Post
self.configWin.setAttribute(Qt.WA_Maemo5StackedWin dow )
print"stacked window"
USE_MAEMO=True
except:
USE_MAEMO=False

[/CODE]

Anything I'm doing wrong on the stacked windows. Clearly I'm using Qt4.6 as rotation works
I need to see more context... What is configWin ? Does it have a parent ?
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#5
Originally Posted by attila77 View Post
There are some mixups with certain qt packages missing or having the wrong name. As soon as they land, we're good to go as far as I'm concerned..



Err...

Code:
try:
    from PyQt4.QtMaemo5 import *
    USE_MAEMO = True
except:
    USE_MAEMO = False
?



I need to see more context... What is configWin ? Does it have a parent ?
configwin has the main window as parent. In PR 1.1 I used the old method of parenting and that worked fine. In PR1.2 I have tried both old method configWin=ConfigClass(parentwin), as well as leaving out the parent.

===edit===
got this to work using the old method, AND setting the window attribute
__________________
N900_Email_Options Wiki Page

Last edited by mikec; 2010-05-27 at 19:04.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#6
GIven that the necessary packages have landed in the system repositories, I have promoted PyQt4 for Qt4.6 (demos & full install) into extras-testing. If you have the time to check them out, some thumbing won't hurt to get it to Extras

Full install:
http://maemo.org/packages/package_in.../4.7.3-maemo5/
Demo:
http://maemo.org/packages/package_in.../4.7.3-maemo5/
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following 6 Users Say Thank You to attila77 For This Useful Post:
mikec's Avatar
Posts: 1,366 | Thanked: 1,185 times | Joined on Jan 2006
#7
OK have voted, will upload PR1.2 version of NCalc this weekend with portrait mode support
__________________
N900_Email_Options Wiki Page
 

The Following User Says Thank You to mikec For This Useful Post:
Posts: 999 | Thanked: 1,117 times | Joined on Dec 2009 @ earth?
#8
I updated to PR1.2 and very happy with it.

However, I'm not quite sure I have installed the "correct" version of PyQt.

I installed the version from the "development" repositories;
PyQt4 Full install
(Complete Python binding set for Qt4(PR1.2)

Installed version: 4.7.3-maemo5

I'm just unsure I have done the right thing. I plan to release my app to end-users - just concerned they may have problems installing and using the app.

Just a little paranoid!
__________________
I like cake.
 
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#9
No problems, but end users need not depend on the whole (aka full) install of PyQt. In the dependencies list only those modules you actually import (most commonly these would be python2.5-qt4-gui and python2.5-qt4-core).
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 
mece's Avatar
Posts: 1,111 | Thanked: 1,985 times | Joined on Aug 2009 @ Åbo, Finland
#10
I just migrated from PySide to PyQt and I can't seem to get Portrait mode to work.
This is how I did it on pyside, and it worked fine:
Code:
from PyQt4.QtCore import *
from PyQt4.QtGui import *

...

self.setAttribute(Qt.WA_Maemo5PortraitOrientation, True)
but this does nothing. I saw that there is the maemo5 module, but
from PyQt4.QtMaemo5 import *
didn't affect the outcome in any way.

Any ideas? (I want manual rotation btw)
__________________
Class .. : Meddler, Thread watcher, Developer, Helper
Humor .. : [********--] Alignment: Pacifist
Patience : [*****-----] Weapon(s): N900, N950, Metal music
Agro ... : [----------] Relic(s) : N95, NGage, Tamyia Wild One

Try Tweed Suit for your hardcore twittering needs
http://twitter.com/mece66
I like my coffee black, like my metal.
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:04.