Re: [PyQt] PyQt5.1 snapshot, Qt5.1.1, ASSERT failure in QVector

2013-10-13 Thread Phil Thompson
On Thu, 10 Oct 2013 10:27:10 +0200, Johnny Karlsson wrote: > Hi! I’m experiencing a problem that might be a bug in PyQt. I've made > a code example that demonstrates the problem: > > class CommClient(QObject): > >def __init__(self, parent=None): > QObject.__init__(self) > self._d

Re: [PyQt] SIP_READ_ONLY was not declared in this scope

2013-10-12 Thread Phil Thompson
On Wed, 9 Oct 2013 19:16:59 +0200, Filippo Cucchetto wrote: > Hi, > i'm trying to cross compile the PyQt bindings for my raspberry pi. During > the build process make fails with: > /home/filippo/Raspberry/src/PyQt-gpl-5.1.1-snapshot-41b8f6ca2ea4/sip/QtQuick/qsggeometry.sip:67:21: > error: 'SIP_REA

Re: [PyQt] Missing QPageSize enum in vars(QPrinter) ?

2013-10-12 Thread Phil Thompson
On Thu, 10 Oct 2013 09:43:10 -0400, lloyd konneker wrote: > This code worked in PyQt4 and Qt4 to get a dictionary of paper size names: > > paperSizeNames = {} > print(vars(QPrinter)) > for key, value in vars(QPrinter).items(): # Python2 iteritems(): >if isinstance(value, QPrinter.PageSize):

Re: [PyQt] PyQt5 with QtQuick 1.1

2013-10-10 Thread Phil Thompson
On Thu, 10 Oct 2013 21:19:15 +0200, Alexander Rössler wrote: > Hello, > > How can I use PyQt5 in combination with QtQuick 1.1? I know QtQuick 2.0 is > better but on the BeagleBone currently no OpenGL is available so I am > better of sticking to the raster engine of QtQuick 1.1. Where can I find >

Re: [PyQt] module QtSvg doesn't build in, PyQt-gpl-5.1.1-snapshot-fc7b8711dba0 (lloyd konneker)

2013-10-08 Thread Phil Thompson
On Mon, 07 Oct 2013 21:03:54 -0400, lloyd konneker wrote: > I determined that QtSvg is not a subtarget in the Makefile. > > I will assume that is intended and that I shouldn't be using a > snapshot. I will regress to the released PyQt5.1. It should work fine. Run configure.py with the --verbo

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-08 Thread Phil Thompson
On Tue, 08 Oct 2013 10:29:44 +1100, Stephen Gava wrote: > On 07/10/13 23:36, Phil Thompson wrote: >> Hopefully fixed in tonight's PyQt5 snapshot, or try the attached patch. > > great thanls Phil, i'll try building the snapshot when it's available > and test that

Re: [PyQt] PyQt5 and QQuickImageProvider

2013-10-07 Thread Phil Thompson
On Mon, 7 Oct 2013 00:09:51 +0200, Jens Persson wrote: > Hi, I'm trying to port an app to PyQt5 and everything has been working > smoothly so far ... except one thing. I can't get my QQuickImageProvider > to work properly: > --- > from PyQt5 import QtCore > from PyQt5 import QtGui > from PyQt5 im

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Phil Thompson
On Mon, 07 Oct 2013 11:27:56 +1100, Stephen Gava wrote: > Phil, i've attached a simple test case that illustrates this problem, > here it is inline: > > import sys > > from PyQt5.QtWidgets import (QApplication,QMainWindow) > > class MainWindow(QMainWindow): > def __init__(self): >

Re: [PyQt] pyqt5.1 baffling exceptions: AttributeError: 'Qxxxxxx' object has no attribute 'QWidget'

2013-10-07 Thread Phil Thompson
On Mon, 07 Oct 2013 13:41:04 +0200, Vincent Vande Vyvre wrote: > Le 07/10/2013 11:02, Jens Persson a écrit : >> For me, python-2.7.3, qt-5.1.1, pyqt-5.1 and 32-bit Linux. >> >> On Mon, Oct 7, 2013 at 10:13 AM, Stephen Gava > > wrote: >> >> >> >> On 07/10/13 19:07, Je

Re: [PyQt] PyQt4 - QChar - unicode char?

2013-10-05 Thread Phil Thompson
On Sat, 5 Oct 2013 13:10:42 -0700, David Cortesi wrote: > # python 2.7 > from future import unicode_literals > uu = u'\u2019' # no problem here but... > qcCurlyApostrophe = QChar(uu) > Traceback (most recent call last): > File "", line 1, in > UnicodeEncodeError: 'ascii' codec can't encode ch

Re: [PyQt] pyqt5.1 fails to build for qt5.01: qpyopengl_api.h:29:33: fatal error: QOpenGLVersionProfile: No such file or directory

2013-10-05 Thread Phil Thompson
On Fri, 4 Oct 2013 12:11:14 -0400, wrote: > My environment: > Ubuntu 13.04 > Qt5.0.1 (as installed by Ubuntu) > Python3.3 (as installed by Ubuntu) > python3-dev (installed using Ubuntu Software Center) > sip-4.15.2 (downloaded) > PyQt-gpl-5.1 (downloaded) > >>cd Down*/PyQt* >>python3 configure.py

Re: [PyQt] pyqt5.1 QWidget.childAt() exception

2013-10-05 Thread Phil Thompson
On Fri, 04 Oct 2013 16:07:38 +1000, Stephen Gava wrote: > i've found another puzzling (to me) difference in behaviour between > pyqt5 and pyqt4. > > using pyqt4 this works without any problem: > > child_widget=self.parent_widget.childAt(self.parent_widget.mapFromGlobal(QCursor.pos())) > > retu

Re: [PyQt] pyqt5.1 segfault on QShortcut construction

2013-10-04 Thread Phil Thompson
On Fri, 04 Oct 2013 11:17:38 +1000, Stephen Gava wrote: > hi there, i already tried to send a message on this, through gmane, > which never appeared, so apologies if they both turn up on the list. > hereforth let this be the canonical message on this topic (eg. ignore > the other one if it appe

[PyQt] ANN: PyQt v5.1 Released

2013-10-02 Thread Phil Thompson
PyQt v5.1 has been released. This fully supports Qt v5.1, including the new QtSensors and QtSerialPort modules. Also included is a (nearly) complete set of OpenGL v2.0 and OpenGL ES/2 bindings. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com ht

Re: [PyQt] Trying to upgrade Qt4 in Linux

2013-10-01 Thread Phil Thompson
On Mon, 30 Sep 2013 16:28:48 -0700, David Cortesi wrote: > In a Linux system my PyQt4 app fails because it relies on a feature that > dates to Qt 4.7. This Linux system has 4.6 installed. Also the PyQt4 was at > 4.6.x. So I did the following: > > Downloaded the Linux source of SIP, configure, ma

Re: [PyQt] PyQt5 on Debian Wheezy for ARM

2013-09-30 Thread Phil Thompson
On Mon, 30 Sep 2013 23:10:58 +0200, Alexander Rössler wrote: > Hello, > > Currently I am trying to compile PyQt5 on Debian on a BeagleBone. All > works so far (after a few modifications...) but QtQml module does not load. > It gives me the following error: > ImportError: /usr/local/lib/python2.

Re: [PyQt] Custom C++ types as signal arguments

2013-09-28 Thread Phil Thompson
On Tue, 24 Sep 2013 13:24:05 + (UTC), David Boddie wrote: > I'm running into problems with sip and custom signal arguments. I'm > probably > doing something wrong, and I'm hoping that someone might be able to put me > on > the right track. > > I've written a class with this definition: > >

Re: [PyQt] Upcoming Release of PyQt v5.1

2013-09-28 Thread Phil Thompson
On Sat, 28 Sep 2013 12:54:08 +0200, Tomas Sobota wrote: > A couple of days ago I downloaded and compiled PyQt-gpl-5.1 > -snapshot-597681874226 on my Linux Mint Debian Edition box. > > The file qmlscene/pluginloader.cpp failed to compile the sentence: > QVector ucs4 = py_plugin_dir.toUcs4(); >

[PyQt] Upcoming Release of PyQt v5.1

2013-09-28 Thread Phil Thompson
The current PyQt5 snapshot is a release candidate for v5.1. This includes... - full support for integration with QML and Quick2 - support for Qt v5.1 including the QtSensors and QtSerialPort modules - an (almost) complete set of OpenGL 2.0 and OpenGL ES2 bindings - support for cross-compilation.

Re: [PyQt] multiple inheritance and signals problem, mixin before QObject

2013-09-14 Thread Phil Thompson
On Thu, 12 Sep 2013 10:30:06 -0400, lloyd konneker wrote: > This is an update to my previous post. > Here is an abstract of the code for easier reading: > > > class B(object): >def __init__(self): > self.a1 = A() > self.a1.signal1.connect(self.handler)# Fails in PyQt, succeeds

[PyQt] ANN: SIP v4.15.2 Released

2013-09-14 Thread Phil Thompson
SIP v4.15.2 has been released. This is a minor functional release that will be needed by PyQt v5.1. It also contains bug fixes needed by PyKDE4. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/

Re: [PyQt] Coinstalling PyQt5 for Python 2 and Python 3

2013-09-13 Thread Phil Thompson
On Fri, 13 Sep 2013 21:01:02 +0200, Luca Beltrame wrote: > Hello, > > While packaging PyQt5 for openSUSE I noticed that there are two plugins > that > are compiled which may conflict on a system that wants PyQt5 both for > Python 2 > and Python 3. > > I'm talking about the Designer plugin and

Re: [PyQt] SIP_ANYSLOT vs SIP_SLOT vs SIP_SLOT_CON()

2013-09-10 Thread Phil Thompson
On Tue, 10 Sep 2013 16:17:25 +0200, Sébastien Sablé wrote: > [sorry previous email was sent before I finished it] > > Hi, > > I want to bind with sip a connect method which can be used with a slot for > which the signature will change from one call to the other. That doesn't sound like a great

Re: [PyQt] PyQt5 cannot import QtWebKit

2013-09-05 Thread Phil Thompson
On Thu, 5 Sep 2013 16:50:04 +0100, Joe Borġ wrote: > Have just (seemingly) successfully built PyQt5, but doesn't seem to have > included WebKit: > > In [1]: from PyQt5 import QtWebKit > --- > ImportError

Re: [PyQt] return value from QGraphicsItem::itemChange is not handled properly.

2013-09-02 Thread Phil Thompson
On Thu, 29 Aug 2013 14:58:07 +, Yann Le Hir wrote: > Hi, > > I'm having an issue with QGraphicsItem::itemChange. > > Here is the test program : > > import PyQt5.Qt as qt > > class Node( qt.QGraphicsRectItem ) : > def __init__( self , sector ) : > super( Node , self ).__ini

Re: [PyQt] Simple patch for pylupdate4

2013-09-01 Thread Phil Thompson
On Fri, 30 Aug 2013 17:47:05 +0200, Florent Rougon wrote: > Hello, > > The following trivial patch to pylupdate/fetchtr.cpp (for PyQt 4.10.3) > allows pylupdate4 to correctly process backslashes at the end of a line, > instead of replacing such backslashes with a linefeed (ASCII 10) > character.

Re: [PyQt] Crash in frozen PyQt5 app

2013-08-30 Thread Phil Thompson
On Fri, 30 Aug 2013 15:13:29 +1200, Glenn Ramsey wrote: > Hi, > > When running the following test app on OSX (10.8.4, PyQt 5.1 snapshot + Qt > 5.1.1) > > https://github.com/pyinstaller/pyinstaller/blob/develop/tests/interactive/test_pyqt5_qml.py > > I get a crash when it is frozen using PyInsta

Re: [PyQt] PyQt 5.1 App doesn't exit after QQuickView closed

2013-08-27 Thread Phil Thompson
On Tue, 27 Aug 2013 09:26:55 +1200, Glenn Ramsey wrote: > Hi, > > In the following example, the application doesn't exit after the > QQuickView > window is closed. Is this the correct behaviour or is it a bug? This is > using > snapshot-693a95fde3fa on OSX 10.8.4 with Qt 5.1, PyQt 5.1 and macpo

[PyQt] PyQt5 Support for Qt v5.1

2013-08-25 Thread Phil Thompson
For those interested, the current PyQt5 snapshot now fully supports Qt v5.1 in all existing modules. The new modules (QtSensors and QtSerialPort) are still to do. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

[PyQt] ANN: SIP v4.15.1 Released

2013-08-23 Thread Phil Thompson
SIP v4.15.1 has been released. This fixes a regression in v4.15 related to the handling of hidden virtual methods. PyQt is unaffected. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Next PyQt5 and SIP Releases

2013-08-23 Thread Phil Thompson
On Fri, 23 Aug 2013 16:53:44 +1200, Glenn Ramsey wrote: > On 18/08/13 22:32, Phil Thompson wrote: >> The current PyQt5 and SIP snapshots are release candidates so any testing >> with them would be greatly appreciated. >> > > I couldn't find QWidget::createWindo

Re: [PyQt] Next PyQt5 and SIP Releases

2013-08-22 Thread Phil Thompson
On Thu, 22 Aug 2013 13:39:40 +0400, Dmitry Shachnev wrote: > On Mon, Aug 19, 2013 at 4:54 PM, John Donovan wrote: >> It seems that the two glob searches in generate_plugin_makefile() >> (line 1180) look for libpython like this: >> /usr/lib/libpython3.3* >> >> Whereas on the Pi, libpython lives he

Re: [PyQt] ANN: PyQt v4.10.3 Released

2013-08-21 Thread Phil Thompson
On Wed, 21 Aug 2013 19:51:59 +0200, Detlev Offenbach wrote: > Will we see a new QScintilla release in the next days as well? No. PyQt v5.1 has priority. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

Re: [PyQt] ANN: PyQt v4.10.3 Released

2013-08-21 Thread Phil Thompson
On Wed, 21 Aug 2013 19:09:47 +0200, Detlev Offenbach wrote: > Hello Phil, > > is the latest QScintilla snapshot compatible with these releases of PyQt4 > and sip? Yes. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomp

[PyQt] ANN: PyQt v5.0.1 Released

2013-08-21 Thread Phil Thompson
PyQt v5.0.1 has been released. This is a major functional release including full support for integrating Python with QML and Quick2. It will build against Qt v5.1 but only supports the Qt v5.0 API. >From the NEWS file... - Added the QtQuick module including the ability to create Python Quick it

[PyQt] ANN: PyQt v4.10.3 Released

2013-08-21 Thread Phil Thompson
PyQt v4.10.3 has been released. This is a minor bug fix release. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: SIP v4.15 Released

2013-08-21 Thread Phil Thompson
SIP v4.15 has been released. This is a significant functional release and is required by PyQt v5.0.1 and PyQt v4.10.3. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Inconsistent documentation for Factory annoctation

2013-08-18 Thread Phil Thompson
On Sun, 18 Aug 2013 01:02:30 -0500, Tyler Wade wrote: > Hello, > > I'm somewhat confused by the documentation for the Factory annotation. In > one place[1] it says that the new instance "…. is owned by C/C++." In a > second[2] it says the new instance "… is owned by Python." Could I get > som

Re: [PyQt] Parent child relationship: child survives parent

2013-07-12 Thread Phil Thompson
On Fri, 12 Jul 2013 09:30:46 +0200, Volker Pilipp wrote: > I've got a little bit confused about ownership of objects in SIP As > far as I understand, if ParentObject owns ChildObject, the destruction > of ChildObject is left to c++ i.e. the c++ destructor of ParentObject > is expected to destruct

Re: [PyQt] Fwd: Building SIP under Python 3.3

2013-07-10 Thread Phil Thompson
On Wed, 10 Jul 2013 11:39:04 +0100, Richard Mitchell wrote: > Hello there, fellow SIP users and developers. > > I've recently been trying to use SIP under Python 3.3. For the most part > the current version (4.14.7) aimed at 3.1 works fine - I only had trouble > with the build process. > > The a

Re: [PyQt] pyqt and qt 5.1

2013-07-08 Thread Phil Thompson
On Mon, 08 Jul 2013 16:59:09 +0200, Horst Hannappel wrote: > Hi, > > I am new to Qt and PyQt and not yet sure how things fit together. In the > recent announcements of Qt 5.1 there were highlighted new features for > Qt quick 2. Is it currently possible to create an Qt application, that > make

Re: [PyQt] make error in PyQt4 install

2013-07-07 Thread Phil Thompson
On Sun, 07 Jul 2013 12:26:18 +0200, Vincent Vande Vyvre wrote: > Hi, > > Installing the last PyQt4 PyQt-x11-gpl-4.10.2, the make fail with this > error: > > ... > rm -f libqpydbus.a > ar cqs libqpydbus.a qpydbus_chimera_helpers.o qpydbus_post_init.o > qpydbuspendingreply.o qpydbusreply.o > mak

Re: [PyQt] Duplicate symbols building PyQt5 against Qt5.1 on OS X 10.7.5

2013-07-07 Thread Phil Thompson
On Sun, 7 Jul 2013 00:13:24 -0700, Chris Knight wrote: > Hello, > > I had PyQt5 working with Qt5.0.2 and Python 2.7but decided to dump my > Qt5.0.2 and install the new Qt5.1. My environment is mac OS X 10.7.5 which > is the latest version of Lion. > > Qt5.1 installed without issues. > SIP ins

Re: [PyQt] Issue with PyQt4/5 and Qt 5.1

2013-07-07 Thread Phil Thompson
On Sat, 06 Jul 2013 15:42:21 +0200, Detlev Offenbach wrote: > Hello, > > today I compiled the Qt 5.1 and built the latest stable releases of PyQt4 > and PyQt5 against it. Now I am not able to start any QProcess. I executed > the QProcess test program as contained in > 'qtbase/tests/auto/coreli

Re: [PyQt] [SIP] is there a Qt5 example for SIP?

2013-07-06 Thread Phil Thompson
On Sat, 6 Jul 2013 07:30:43 -0700, br...@stottlemyer.com wrote: > Hi Phil, > > I am trying to see if SIP will help me with a task I'm trying to solve. I > started out by trying the More Complex C++ Example in the docs. However, > I'm using Qt5, and the example is for Qt4. > > I see the pyqtconf

Re: [PyQt] QCoreApplication.translate()

2013-07-05 Thread Phil Thompson
On Fri, 05 Jul 2013 13:46:43 +0200, pa...@paolodestefani.it wrote: > Hi > I'm trying to internationalize my PyQt application. Following the pyqt > reference guide i'm trying to use QCoreApplication.translate() instead > of self.tr(). > Works but only if i write the full function. But if i want to

Re: [PyQt] Problems with wrapping complex types using typedefs

2013-07-05 Thread Phil Thompson
On Fri, 5 Jul 2013 17:41:21 +0800, "Casper Ti. Vector" wrote: > For example, assuming all example use this header: >> %Module test >> %ModuleHeaderCode >> #include "test.h" >> %End >> %Include types.sip // Where map, pair and vector are wrapped. > > This code: >> std::map, std::vector > Test; > f

Re: [PyQt] APPCrash on exit, Qt4 MainWindow

2013-07-03 Thread Phil Thompson
On Wed, 3 Jul 2013 06:58:56 -0700 (PDT), egus wrote: > Thanks for the direction Phil. > > I added sip.setdestroyonexit(False) to__init__ in my MainWindow class and > that appears to have negated the crashing on the two apps I tried it on. > Simply commenting that command out again caused the same

Re: [PyQt] APPCrash on exit, Qt4 MainWindow

2013-07-03 Thread Phil Thompson
On Tue, 2 Jul 2013 07:52:08 -0500, Erik wrote: > Python 2.7.4x32, Qt 4.8.4 (4.10.2-py27)x32 on Windows 7 64-bit OS PC's > (multiple machines) > > I'm having a reproducible APPCRASH (in QtGUI4.dll) on exit of any > application I write that uses a QMainWindow and a menuBar, if the window > contains

Re: [PyQt] [SIP] How to reasonably implement writable global variables?

2013-07-03 Thread Phil Thompson
On Wed, 3 Jul 2013 00:28:59 +0800, "Casper Ti. Vector" wrote: > Hello list, I am a newcomer to SIP (only one day experience), and please > tell me if I make a mistake. Thanks :) > > I found it quite hard to make read-write interface for (module-wide) > global variables (other than explicitly wri

Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard) - Patch v3

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 18:42:39 +0100, Anzir Boodoo wrote: > Phil, > On 28 Jun 2013, at 17:39, Phil Thompson wrote: > >> On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye >> wrote: >>> Though I see now what you mean by those lines in configure.py - whatever &

Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard) - Patch v3

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wrote: > Though I see now what you mean by those lines in configure.py - whatever > you give for --spec will be overridden by that 'darwin' if block. And if > it isn't macx-xcode it defaults to whatever Qt5 was compiled with, probably > clan

Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 17:16:27 +0100, Phil Thompson wrote: > On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye > wrote: >> Though I see now what you mean by those lines in configure.py - whatever >> you give for --spec will be overridden by that 'darwin' if block

Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 10:20:24 -0500, William Kyngesburye wrote: > Though I see now what you mean by those lines in configure.py - whatever > you give for --spec will be overridden by that 'darwin' if block. And if > it isn't macx-xcode it defaults to whatever Qt5 was compiled with, probably > clan

Re: [PyQt] Status of QSound in PyQt5

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 16:02:55 +0200, Vincent Vande Vyvre wrote: > Hi, > > In Qt5, the class QSound was moved from the module QtGui to the module > QtMultimedia. > > QSound is not present in PyQt5, is it no longer supported or just missed ? It's in the current snapshot. In fact the current snaps

Re: [PyQt] Drawing on a QFrame

2013-06-28 Thread Phil Thompson
On Fri, 28 Jun 2013 15:35:20 +1000, Phil wrote: > Thank you for reading this. > > I'd like to draw on a QFrame. > > The following does draw a line but not on the frame, instead the line is > drawn on the main window. > > I've done this years ago with Qt and C++ but I don't remember how I did i

Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)

2013-06-28 Thread Phil Thompson
On Thu, 27 Jun 2013 18:59:26 -0500, William Kyngesburye wrote: > PyQt should be picking the spec from SIP (unless PyQt 5 changed that). > You can specify the spec when compiling SIP with the option: > > -p macx-g++ > > if that doesn't work when compiling PyQt, try: > > -p macx-llvm > > It's o

Re: [PyQt] If directive for declaring a function for different SIP versions

2013-06-26 Thread Phil Thompson
On Wed, 26 Jun 2013 16:16:41 -0400, Forest Yang wrote: > Hi, > > I have one function to wrap, and want it to work with both sip 4.10 and > 4.13, > There is a KeywordArgs on it. It seems from 4.10 to 4.13 there are some > changes > from /KeywordArgs/ to /KeywordArgs="Optional"/. But the old form

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Phil Thompson
On Tue, 25 Jun 2013 20:46:57 +0530, Shriramana Sharma wrote: > On Tue, Jun 25, 2013 at 8:19 PM, Phil Thompson > wrote: >> The code generator is the same for all Python versions. > > Hi thanks for this quick [as always! :-)] reply! > > So then it seems to me that the pac

Re: [PyQt] Problem with Sip for Py3 on Debian/Ubuntu

2013-06-25 Thread Phil Thompson
On Tue, 25 Jun 2013 20:16:35 +0530, Shriramana Sharma wrote: > I'm trying to build PyQt5 for Py3 on Kubuntu Raring. However I got the > error that Sip was not found: > > This is the GPL version of PyQt 5.0 (licensed under the GNU General Public > License) for Python 3.3.1 on linux. > ... > Found

Re: [PyQt] Installing PyQt 5 on Mac OS X (10.6.8 Snow Leopard)

2013-06-25 Thread Phil Thompson
On Tue, 25 Jun 2013 15:36:59 +0100, Anzir Boodoo wrote: > Hello, > > I've been trying to install PyQt 5 on Mac OS X 10.6.8, and got the > following output (the first line being the Terminal command): > >> Anzir-Boodoos-MacBook-Pro-2:PyQt-gpl-5.0 pbadmin$ python configure.py >> --verbose >> Query

Re: [PyQt] PyQt5 installation

2013-06-24 Thread Phil Thompson
On Mon, 24 Jun 2013 19:09:01 +0200, Detlev Offenbach wrote: > Hello, > > I just installed PyQt5 from source on openSUSE and > noticed, that the pyuic5 executable (script) didn't get > installed with executable rights. Did I do anything wrong? No, it's a Linux specific bug. I was trying to avoi

[PyQt] ANN: PyQtChart v1.3 Released

2013-06-24 Thread Phil Thompson
PyQtChart v1.3 has been released. This supports the new features of Qt Charts v1.3.0. See... http://blog.qt.digia.com/blog/2013/06/19/qt-charts-1-3-0-released-2/ It can be built against PyQt4 and PyQt5. Phil ___ PyQt mailing listPyQt@riverbankcompu

Re: [PyQt] Co-installing different versions of dbus.mainloop.qt

2013-06-23 Thread Phil Thompson
On Sun, 23 Jun 2013 13:53:59 +0400, Dmitry Shachnev wrote: > Hi, > > It looks like versions of dbus.mainloop.qt module provided by PyQt4 > and PyQt5 work only with Qt4 and Qt5, respectively. Trying to run > version from PyQt4 with a PyQt5 application, I get: > > QSocketNotifier: Can only be

Re: [PyQt] QRegularExpression missing from PyQt4

2013-06-23 Thread Phil Thompson
On Sun, 23 Jun 2013 10:31:23 +0200, Detlev Offenbach wrote: > Hello, > > I think, that the new Qt5 regular expression class > QRegularExpression and it's companions are missing from > PyQt4 (at least dir(PyQt4.QtCore) didn't show them). Can > these be added? I'm not including new Qt5 things i

Re: [PyQt] Strange observation

2013-06-21 Thread Phil Thompson
On Fri, 21 Jun 2013 18:54:15 +0200, Detlev Offenbach wrote: > Hello, > > there was a strange observation reported using eric5. The eric5 PySvn > plug-in has a dialog to ask the user for a password. This is embedded in > code like this > > cursor = QApplication.overrideCursor() >

Re: [PyQt] QImage memory leak in 4.10.1

2013-06-21 Thread Phil Thompson
On Tue, 18 Jun 2013 19:14:35 -0400, Luke Campagnola wrote: > On Fri, May 24, 2013 at 1:42 PM, Phil Thompson > wrote: > >> On Thu, 23 May 2013 16:21:26 -0400, Luke Campagnola >> wrote: >> > Howdy, >> > I am using PyQt 4.10.1 (Py2.7-qt4.8.4-x32) on wind

Re: [PyQt] ANN: SIP v4.14.7 Released

2013-06-18 Thread Phil Thompson
On Tue, 18 Jun 2013 16:40:25 -0400, Scott Kitterman wrote: > On Monday, June 17, 2013 10:13:32 AM Phil Thompson wrote: >> SIP v4.14.7 has been released. This is a minor functional release but is >> required by PyQt v5. > > It would be nice if new SIP versions that intr

Re: [PyQt] Custom widgets in Qt5

2013-06-18 Thread Phil Thompson
On Tue, 18 Jun 2013 08:15:44 +0200, Vincent Vande Vyvre wrote: > Le 06/06/2013 12:52, Vincent Vande Vyvre a écrit : >> Le 05/06/2013 23:13, Phil Thompson a écrit : >>> In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in >>> depends on how your Qt5

Re: [PyQt] ANN: PyQt v5.0 Released

2013-06-17 Thread Phil Thompson
On Mon, 17 Jun 2013 08:46:45 -0700 (PDT), ruidc wrote: > Congrats and thanks, > will there be windows binaries for Py2.7 coming to sourceforge? No. Apart from wanting to limit the number of installers (and to encourage people to move the Py3), there is an issue building ICU with MSVC 2008. Phil

[PyQt] ANN: PyQt v5.0 Released

2013-06-17 Thread Phil Thompson
PyQt v5.0 has been released. This supports Qt v5 and requires Python v2.6 or later. Any parts of the At v5 API marked as deprecated or obsolete are not supported. Future versions will add support for new modules introduced with Qt v5. Windows installers are provided for Python v3.3. Unfortunatel

[PyQt] ANN: PyQt v4.10.2 Released

2013-06-17 Thread Phil Thompson
PyQt v4.10.2 has been released. This is a minor bug fix release. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: PyQtChart v1.2.1 Released

2013-06-17 Thread Phil Thompson
PyQtChart v1.2.1 has been released. This adds support for PyQt v5. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] ANN: SIP v4.14.7 Released

2013-06-17 Thread Phil Thompson
SIP v4.14.7 has been released. This is a minor functional release but is required by PyQt v5. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt5 Snapshot, build problems and their solutions, Windows, mingw

2013-06-12 Thread Phil Thompson
On Sun, 12 May 2013 22:42:23 +0200, mathias.b...@gmx.de wrote: > Hi, > > I've compiled the latest PyQt5 snaphot, on 32bit python 3.3.1 (compiled > with mingw, using a self-made > build script based on scons), Windows7, Qt 5.1alpha. > > I've used this configuration step: > > D:\_cpp_projects_\Pyt

Re: [PyQt] How to test sip version

2013-06-11 Thread Phil Thompson
On Tue, 11 Jun 2013 16:04:15 +0200, Sébastien Petitdemange wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 06/11/2013 03:31 PM, Phil Thompson wrote: >> On Tue, 11 Jun 2013 14:42:55 +0200, Sébastien Petitdemange >> wrote: >>> -BEGIN P

Re: [PyQt] How to test sip version

2013-06-11 Thread Phil Thompson
On Tue, 11 Jun 2013 14:42:55 +0200, Sébastien Petitdemange wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 06/11/2013 10:27 AM, Phil Thompson wrote: >> On Tue, 11 Jun 2013 10:04:31 +0200, Sébastien Petitdemange >> wrote: >>> -BEGIN PGP S

Re: [PyQt] How to test sip version

2013-06-11 Thread Phil Thompson
On Tue, 11 Jun 2013 10:04:31 +0200, Sébastien Petitdemange wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi list, > > I need to have sip file compatible with != sip version (starting at 4.10) > What is the best way to archive that? If you are talking about SIP directives, ie. you

Re: [PyQt] Update on PyQt5 Status

2013-06-10 Thread Phil Thompson
On Mon, 10 Jun 2013 09:22:12 +0100, Brendan Donegan wrote: > On 09/06/13 08:24, Phil Thompson wrote: >> The current PyQt5 snapshot now has a stable API - what is currently >> implemented is what will be in v5.0. > > Out of curiousity will this include the QtQml module? No.

[PyQt] Update on PyQt5 Status

2013-06-09 Thread Phil Thompson
The current PyQt5 snapshot now has a stable API - what is currently implemented is what will be in v5.0. You will need a current SIP snapshot - which means you will have to re-build PyQt4. The remaining work is to resolve any outstanding platform build issues and to do some documentation. I hope

Re: [PyQt] QTextBlockUserData forgotten in SIP 4.14.3, bug?

2013-06-08 Thread Phil Thompson
On Sat, 8 Jun 2013 18:35:56 +0200, Olivier Keshavjee wrote: > Hello, > > I've seen that two months ago ( > http://www.riverbankcomputing.com/pipermail/pyqt/2013-March/032458.html) a > bug in PyQt caused QTextBlockUserData objects to be destroyed. This was > announced to be fixed. > > Yet I still

Re: [PyQt] PyQt / SIP from an embedded Python interpreter

2013-06-08 Thread Phil Thompson
On Fri, 7 Jun 2013 23:44:17 +0200, Johan Thelin wrote: > Hi, > > I've been experimenting with using PyQt and SIP from a Python > interpreter embedded into a larger C++ application. I do this on Linux > (Kubuntu 13.04), Qt 5 and PyQt/SIP from last Wednesday (June 5th). > This gives me an unresolve

Re: [PyQt] QApplication and datetime.strptime

2013-06-05 Thread Phil Thompson
On Wed, 5 Jun 2013 22:20:46 +0200, Michka Popoff wrote: > Hi > > I am extracting strings containing dates from some files in a pyqt app, > and I want to use datetime.strptime to format them. > > But this won't work as Qapplication seem to alter my locales. I found this > topic : > > http://stac

Re: [PyQt] Missing QVectorD Classes

2013-06-05 Thread Phil Thompson
On Tue, 4 Jun 2013 09:57:05 -0700, "Tzucker, Jay" wrote: > I am using PyQt4 under Linux (CentOS) with the following versions: > Qt: 4.6.2 > PytQt:4.6.2 > Python:2.6.6 > > The QVectorD (ex. QVector3D) classes seem to be missing. > I imported and looked thru the classes in QtGui where I expected t

Re: [PyQt] Custom widgets in Qt5

2013-06-05 Thread Phil Thompson
On Tue, 04 Jun 2013 12:24:26 +0200, Vincent Vande Vyvre wrote: > Hi, > > With PyQt4 I have this folder: > /usr/lib/x86_64-linux-gnu/qt4/plugins/designer/ > wich content the lib libpythonplugin.so and a subfolder python for my > custom widgets. > > Now, I've just installed Qt5 and the latest sna

Re: [PyQt] Bug: PyQt5.uic.loadUi() attempts to set non-existing property

2013-06-02 Thread Phil Thompson
On Sun, 2 Jun 2013 19:28:42 +0200, mathias.b...@gmx.de wrote: > Hi, > > There appears to be an error in the loading of .ui files in PyQt5. > Please try the attached example. > > Error message: > > Traceback (most recent call last): > File "D:\eclipse.workspace\py_tests\src\uic_bug.py", line 15

Re: [PyQt] Guaranteed avoidance of C++ destructor call

2013-05-31 Thread Phil Thompson
On Thu, 30 May 2013 23:27:04 +0100 (BST), John Lee wrote: > On Thu, 30 May 2013, Phil Thompson wrote: > >> On Thu, 30 May 2013 22:49:24 +0100 (BST), John Lee wrote: >>> Hi >>> >>> Is it possible to guarantee that a C++ destructor of a QObject

Re: [PyQt] Guaranteed avoidance of C++ destructor call

2013-05-30 Thread Phil Thompson
On Thu, 30 May 2013 22:49:24 +0100 (BST), John Lee wrote: > Hi > > Is it possible to guarantee that a C++ destructor of a QObject wrapped by > PyQt is never called? > > In C++ code, I can just avoid ever deleting the QObject, by not giving it > a QObject parent, so that Qt does not manage its

Re: [PyQt] PyQt5 and the QtQuick module

2013-05-28 Thread Phil Thompson
On Tue, 28 May 2013 16:46:16 +0100, Brendan Donegan wrote: > On 28/05/13 16:44, Phil Thompson wrote: >> On Tue, 28 May 2013 14:18:20 +0100, Brendan Donegan >> wrote: >>> Hi, >>> >>> I'm interested in using PyQt5 to implement an application I'

Re: [PyQt] PyQt5 and the QtQuick module

2013-05-28 Thread Phil Thompson
On Tue, 28 May 2013 14:18:20 +0100, Brendan Donegan wrote: > Hi, > > I'm interested in using PyQt5 to implement an application I'm working > on, as I want to use the Ubuntu Touch SDK and the Qml widgets it > provides. I've tried building the snapshot of PyQt5 and noticed that the > QtDeclarative

Re: [PyQt] Build error with PyQt4 4.10 on Mac 10.7.5

2013-05-24 Thread Phil Thompson
On Fri, 24 May 2013 11:49:28 -0600, Larry Shaffer wrote: > Hi Phil, > > On Fri, May 24, 2013 at 10:34 AM, Phil Thompson > > wrote: > >> On Tue, 21 May 2013 11:12:59 -0600, Larry Shaffer >> >> wrote: >> > Hi Phil, >> > >>

Re: [PyQt] QImage memory leak in 4.10.1

2013-05-24 Thread Phil Thompson
On Thu, 23 May 2013 16:21:26 -0400, Luke Campagnola wrote: > Howdy, > I am using PyQt 4.10.1 (Py2.7-qt4.8.4-x32) on windows XP. It appears that > on this system, QImage(sip.voidptr, int, int, format) increases the > reference count to the image data object, but does not decrease the > refcount aft

Re: [PyQt] Old style signal/slot bug on win32

2013-05-24 Thread Phil Thompson
On Thu, 23 May 2013 10:27:28 +0200, Giuseppe Corbelli wrote: > Hi all > I've found a strange bug on win32 using PyQt old style signals. > Sometimes I get a wrong result from QObject::receivers and the signal is > "lost". Looks like a PyQt bug cause a similar C++ example works correctly > both >

Re: [PyQt] Build error with PyQt4 4.10 on Mac 10.7.5

2013-05-24 Thread Phil Thompson
On Tue, 21 May 2013 11:12:59 -0600, Larry Shaffer wrote: > Hi Phil, > > On Fri, Apr 12, 2013 at 4:28 AM, Phil Thompson > wrote: > >> On Thu, 11 Apr 2013 17:21:37 -0600, Larry Shaffer >> >> wrote: >> > Hi, >> > >> > Trying to get the

Re: [PyQt] [Mac] PyQt5 and Qt5.1.0 beta 1 - NameError: global name 'QApplication' is not defined

2013-05-20 Thread Phil Thompson
On Mon, 20 May 2013 20:03:16 +0100, Chris Roebuck wrote: > Using osx 10.8.3 I installed Qt5.1.0 beta1 using the binary installer, then > built sip 4.14.7 dev snapshot and PyQt5 against Qt5.1.0 beta1 > > Using python3 I'm getting the following error when I try to run this simple > script: > > #!/

Re: [PyQt] PyQt5 QtQuick 2.0 binding

2013-05-15 Thread Phil Thompson
On Wed, 15 May 2013 15:58:52 +0200, Wojciech Daniło wrote: > Hi! Is PyQt5 working with QtQuick2.0? No. The first release of PyQt5 will be the same as PyQt4 will all the deprecated, obsolete stuff removed. Phil ___ PyQt mailing listPyQt@riverbankcom

Re: [PyQt] PyQt5 installation problem

2013-05-15 Thread Phil Thompson
On Wed, 15 May 2013 15:36:51 +0200, Wojciech Daniło wrote: > Thank you, using the latest snapshot it compiled successfully - sorry for > not testing it myself. > But while installation I get next error ...: > "strip:/usr/bin/pyuic5: File format not recognized" > > full error stack: > http://paste

Re: [PyQt] PyQt5 installation problem

2013-05-15 Thread Phil Thompson
On Wed, 15 May 2013 15:05:22 +0200, Wojciech Daniło wrote: > Thank you! The problem was solved, but occured next one - while compiling I > get: > "qpycore_post_init.cpp:46:26: error: 'sipSetDestroyOnExit' was not declared > in this scope" > > full error stack can be found here: http://pastebin.c

Re: [PyQt] PyQt5 installation problem

2013-05-15 Thread Phil Thompson
On Wed, 15 May 2013 14:23:35 +0200, Wojciech Daniło wrote: > Hi! > When I'm trying to install PyQt5 I get an error: Error: PyQt5 requires Qt > v5.0 or later. > > My Qt5.0.2 installation is in my $HOME/dev/Qt5.0.2 - how can I tell the > configure script to search for it there? Use the --qmake fla

Re: [PyQt] General questions on parsing large QStrings

2013-05-13 Thread Phil Thompson
On Sun, 12 May 2013 22:12:00 -0700, David Cortesi wrote: > Thanks to you and Mathias for the prompt replies. > > > docstring = unicode( myEditor.toPlainText() ) >> In PyQt5 toPlainText() will return a str object for Python3 and a unicode >> object for Python2. >> > > And, as Mathias says, i

  1   2   3   4   5   6   7   8   9   10   >