maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+) (https://talk.maemo.org/showthread.php?t=50960)

attila77 2010-04-24 23:14

[ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
1 Attachment(s)
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

mikec 2010-05-25 20:05

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
Quote:

Originally Posted by attila77 (Post 626443)
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

mikec 2010-05-25 20:58

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
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

attila77 2010-05-25 21:51

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
Quote:

Originally Posted by mikec (Post 676940)
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..

Quote:

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

?

Quote:

Originally Posted by mikec (Post 677072)
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 ?

mikec 2010-05-26 06:18

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
Quote:

Originally Posted by attila77 (Post 677203)
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:D

attila77 2010-05-27 11:50

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
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/

mikec 2010-05-27 19:05

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
OK have voted, will upload PR1.2 version of NCalc this weekend with portrait mode support:D

johnel 2010-06-02 09:53

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
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!

attila77 2010-06-04 04:10

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
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).

mece 2010-06-04 13:00

Re: [ANNOUNCE] PyQt 4.7.3 for Qt4.6 (PR1.2+)
 
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)


All times are GMT. The time now is 00:22.

vBulletin® Version 3.8.8