Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, David Boddie wrote: > On Thu Feb 12 20:03:49 GMT 2009, Stef Mientki wrote: > > > Me too thought that PyQt was the solution to be multi-platform, > > but from the reactions pocket PC doesn't seem to be included. > > I think the reason for that has been lack of obvious dema

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread Ingmar Steen
Hi, >From what I remember, wxPython doesn't work too well on PocketPC because of >memory issues (I once did a 'port' myself, http://wxpyce.wikispaces.com/) so >bringing that up as a reason to use wxPython on a public PyQt mailing list >seems a bit strange. While VensterCE is nice, it doesn't m

[PyQt] Is there any pyqt4(v4.4.4) windows installer for python2.5?

2009-02-12 Thread Grissiom
I browsed the download page but could not find any. For some reason, I could only use python2.5 on the windows box and don't have a VC to compile the source. So is there any pyqt4.4.4 windows installer for python2.5? -- Cheers, Grissiom ___ PyQt mailing

Re: [PyQt] LGPL license.

2009-02-12 Thread David Boddie
On Wed, 11 Feb 2009 18:29:53 +0530, Rajeev J Sebastian wrote: > How about when people (who do not code, and have not coded in their > entire life) also demand that your work be made "free" (as in "free > speech") so that they can profit enormously from it ? That also > strikes me as being cruel. >

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread David Boddie
On Thu Feb 12 20:03:49 GMT 2009, Stef Mientki wrote: > Me too thought that PyQt was the solution to be multi-platform, > but from the reactions pocket PC doesn't seem to be included. I think the reason for that has been lack of obvious demand. Getting a version of PyQt up and running with the con

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, Frédéric wrote: > I found the issue: I loaded i18n stuff *after* creating the main > window... It has to be done before. > > But now, even if the main window is correctly translated all dialogs > opened from there are not translated :o( Any idea for this problem? The str

Re: [PyQt] Splash screen

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, NARCISO, Rui wrote: > I just tried to use QSplashScreen and nothing is happening. I mean, my > app opens without showing the splash screen even if I put a 10 second > sleep before the app is launched ... > > What am I doing wrong ? Strange: your code works fine for me. I

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, David Boddie wrote: > One place to start looking for information about Python on mobile > devices is this page: > > http://www.awaretek.com/pymo.html Thanks for the link. -- Frédéric http://www.gbiloba.org ___ PyQt

[PyQt] Re: Zoom or scale into an QImage

2009-02-12 Thread Markus Feldmann
I got an error Message: unhandled AttributeError "imgLabel" I think he can not find this Attribute, but i am not sure. I have defined "imgLabel" in the <__init__(self, parent=None)> Class-Method. Do i have to make a Class-Attribute to call it from another Class-Method ? What should be Class Att

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread Stef Mientki
Frédéric wrote: Le 10/2/2009, "David Boddie" a écrit: Nobody is using PyQt on WindowsCE? This was briefly discussed last year, it seems: http://www.riverbankcomputing.com/pipermail/pyqt/2008-May/019307.html Yes, I found this thread, and nother one... Me too thought that

Re: [PyQt] QVector Bug?

2009-02-12 Thread Darryl Wallace
Ok so I guess it's not technically a 'QVector' since QVector is not explictly implemented. Regardless, the code used to work in PyQt4.4.2 for QPolygon. And I solve the problem using .at() instead of the __getitem__ / [] operator darryl Darryl Wallace wrote: Hello, I may have encountered an

[PyQt] QVector Bug?

2009-02-12 Thread Darryl Wallace
Hello, I may have encountered an error with using QPolygon (or I guess any QVector / QVector) It doesn't appear to be able to set the values. The following code is my test: from PyQt4 import Qt from random import random f=Qt.QPolygonF(5) print "Before" for i in range(5):

Re: [PyQt] pyuic 4.4.3 and AttributeError: setSortingEnabled

2009-02-12 Thread Phil Thompson
On Thu, 12 Feb 2009 18:11:53 +0100, Victor Stinner wrote: > Hi, > > pyuic 4.4.3 (for Qt 4.41, Ubuntu Ibex) generates invalid Python code: it > calls > setSortingEnabled(state) method on a QWidget whereas this class doesn't > have > such method. Error: > >Traceback (most recent call last):

[PyQt] pyuic 4.4.3 and AttributeError: setSortingEnabled

2009-02-12 Thread Victor Stinner
Hi, pyuic 4.4.3 (for Qt 4.41, Ubuntu Ibex) generates invalid Python code: it calls setSortingEnabled(state) method on a QWidget whereas this class doesn't have such method. Error: Traceback (most recent call last): ... File ".../nufaceqt/ruleset_dialog_ui.py", line 52, in setupUi

RE: [PyQt] Splash screen

2009-02-12 Thread NARCISO, Rui
I just tried to use QSplashScreen and nothing is happening. I mean, my app opens without showing the splash screen even if I put a 10 second sleep before the app is launched ... What am I doing wrong ? Here is the code: def main(): sys.argv.append("-style=plastique") app = QApplication(

Re: [PyQt] PocketPC port of PyQT4

2009-02-12 Thread David Boddie
On Tuesday 10 February 2009, Frédéric wrote: > Is it hard to compile sip/PyQt on such devices? What are the needed > tools? I own an old PocketPC, so I could give it a try. But I need help > to start ;o) One place to start looking for information about Python on mobile devices is this page: http

Re: [PyQt] Splash screen

2009-02-12 Thread Frédéric
On jeudi 12 février 2009, Phil Thompson wrote: > On Thu, 12 Feb 2009 16:34:57 +0100, Frédéric > > > Users asked me to show a little splash screen, to show that the > > application is alive during startup. > > > > How do I implement this? Is there some example code arround? > > QSplashScreen is pre

Re: [PyQt] Splash screen

2009-02-12 Thread Phil Thompson
On Thu, 12 Feb 2009 16:34:57 +0100, Frédéric wrote: > My application dynamically loads the ui files, using the uic module. On a > recent PC, there is no problem, but when running on small devices, like > Nokia N8x0, the application takes a few seconds before showing the main > window. > > Users a

[PyQt] Qt scripting framework

2009-02-12 Thread Frédéric
Is there an advantage using the Qt scripting framework in PyQt, as it should be possible to use python as scripting feature? Is there some example code to show how one could allow users to script some parts of an application? Thanks, -- Frédéric _

[PyQt] Splash screen

2009-02-12 Thread Frédéric
My application dynamically loads the ui files, using the uic module. On a recent PC, there is no problem, but when running on small devices, like Nokia N8x0, the application takes a few seconds before showing the main window. Users asked me to show a little splash screen, to show that the applica

Re: [PyQt] LGPL license.

2009-02-12 Thread Knapp
On Thu, Feb 12, 2009 at 2:58 PM, Sundance wrote: > On Thu, Feb 12, 2009 at 01:05:34PM +0100, Knapp wrote: > >> Sometimes I think it would be good to have a commercial license that >> says please pay us after 2 years if you have the cash, perhaps with >> interest to make up for the risk we took on

Re: [PyQt] LGPL license.

2009-02-12 Thread Giovanni Bajo
On 2/12/2009 12:44 PM, Sundance wrote: Giovanni Bajo wrote: You're basically restating your previous point, without debating mine. The language choice affects companies much more than £350 / programmer. Hi Giovanni, hi Phil, hi everybody, Giovanni, I'm... a bit uncomfortable writing this bec

[PyQt] Using PyQT under the MIT license?

2009-02-12 Thread Simon Hibbs
Hi all, I just joined the mailing list although I've been browsing the archives occasionally for quite some time. I already hold a PyQT3 license through owning a copy of Blackadder, the now basically defunct Python/QT IDE from TheKompany. There's no way i could conceivably afford a full commercial

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
Le 12/2/2009, "Frédéric" a écrit: > But my app is not translated :o( What Am I doing wrong? I found the issue: I loaded i18n stuff *after* creating the main window... It has to be done before. But now, even if the main window is correctly translated all dialogs opened from there are not transl

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
Le 12/2/2009, "Frédéric" a écrit: >I think I will switch to tr() method (and translate() one if needed), as >I don't want to hack pylupdate4... Ok, I made all modifications, translated the ts file, generated the qm file, and loaded the translator using this code: locale = QtCore.QLocal

Re: [PyQt] LGPL license.

2009-02-12 Thread Sundance
Giovanni Bajo wrote: > You're basically restating your previous point, without debating mine. > The language choice affects companies much more than £350 / > programmer. Hi Giovanni, hi Phil, hi everybody, Giovanni, I'm... a bit uncomfortable writing this because I generally agree with you, and

Re: [PyQt] Looking for docs of packing PyQt4 app with py2exe

2009-02-12 Thread Frédéric
Le 12/2/2009, "Arthur Pemberton" a écrit: >So far things are a lot clear now. One question... is there a `uic` >type module which can load the .qrc directly? Just a curiosity, not a >need. I think so, using QResource class. Have a look at: http://doc.trolltech.com/4.4/resources.html in th

Re: [PyQt] Using PyQT under the MIT license?

2009-02-12 Thread Phil Thompson
On Wed, 11 Feb 2009 22:13:41 -0800, Jim Tilander wrote: > Hi all, > > So after a little bit of digging I saw that Qt itself allows for some > other open source licenses > (http://doc.trolltech.com/4.4/license-gpl-exceptions.html) including > MIT License, which is my favourite no nonsense license.

Re: [PyQt] Looking for docs of packing PyQt4 app with py2exe

2009-02-12 Thread Arthur Pemberton
On Thu, Feb 12, 2009 at 2:34 AM, Frédéric wrote: > > Le 12/2/2009, "Frédéric" a écrit: > >>> I am aware of [1] but I am not clear on how treats resources like >>> images. I currently have them in the simplest/laziest form -- images >>> are directly on the filesystem and linked to from within Qt D

Re: [PyQt] i18n

2009-02-12 Thread Frédéric
Le 11/2/2009, "Frédéric" a écrit: >Does anybody could point me on example how to use i18n in PyQt? > >Riverbank documentation says that one should not use tr() method, but >instead QtCore.QCoreApplication.translate(). As the object must be >passed to this method, this not improves the readabilit

Re: [PyQt] Looking for docs of packing PyQt4 app with py2exe

2009-02-12 Thread Frédéric
Le 12/2/2009, "Frédéric" a écrit: >> I am aware of [1] but I am not clear on how treats resources like >> images. I currently have them in the simplest/laziest form -- images >> are directly on the filesystem and linked to from within Qt Designer. >> So I was hoping for someone to point me to do