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

2013-10-13 Thread Phil Thompson
f range", file > ../../include/QtCore/../../src/corelib/tools/qvector.h, line 350 > > I'm running the latest snapshot of PyQt5.1 ( > PyQt-gpl-5.1.1-snapshot-41b8f6ca2ea4. ) and stable Qt5.1.1 built from > source on Ubuntu 12.04. Should be fixed in tonight's snapshot. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-10-12 Thread Phil Thompson
ure you are picking up the latest sip.h and not the one installed on the pi by default (which is too old). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-10-12 Thread Phil Thompson
e PageSize enum is defined in the QPagedPaintDevice class. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt5 with QtQuick 1.1

2013-10-10 Thread Phil Thompson
here can I find > the QtDeclarative module and the QDeclarativeView class? Use PyQt4 (built against Qt5). PyQt5 doesn't support anything in Qt5 that is marked as obsolete. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www

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

2013-10-08 Thread Phil Thompson
igure.py with the --verbose flag to see what's happening. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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
gt; pixmap.fill(QtGui.QColor(id)) > return pixmap > > ImageProviderGUI() > --- > import QtQuick 1.1 > > Image { > source: "image://cover/red" > } > --- > Also the requestPixmap method takes one parameter less in PyQt5. So

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(QMainWind

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

2013-10-07 Thread Phil Thompson
nux. >> >> >> >> ___ >> PyQt mailing listPyQt@riverbankcomputing.com >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt > Works too with Python 3.2.3, Qt 5.0.2, PyQt 5.0, on 64bit Ubuntu It's Ok

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

2013-10-05 Thread Phil Thompson
deEncodeError: 'ascii' codec can't encode character u'\u2019' in > position 0: ordinal not in range(128) > qcCurlyApostrophe = QChar(8217) # int workaround ok > > So - user error? Yes. > Or failure to recognize the "QChar::QCh

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
t least build for Qt 5.0.1. > > I will attempt to regress to PyQt5.0.1 Should be fixed in tonight's snapshot. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-10-05 Thread Phil Thompson
#x27; > > can anyone shed any light on this? Do you have a small, complete test case that demonstrates the problem? Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-10-04 Thread Phil Thompson
s. > > am i doing something wrong that somehow still worked under pyqt4? Should be fixed in tonight's snapshot. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[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

Re: [PyQt] Trying to upgrade Qt4 in Linux

2013-10-01 Thread Phil Thompson
? > I don't see anything relevant in configure-ng --help. > > I observe that /usr/include/qt4/* exists, presumably this is the old one; > but the Qt4 make-install put a lot of stuff in > /usr/local/TrollTech/Qt4.8.5/* > > thanks, > Dave Cortesi Use the

Re: [PyQt] PyQt5 on Debian Wheezy for ARM

2013-09-30 Thread Phil Thompson
e was already discussion about this (Raspbian) > http://comments.gmane.org/gmane.comp.python.pyqt-pykde/25728 > but with no solution. That was a different issue and, AFAIK resolved. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-09-28 Thread Phil Thompson
and maybe this > leads to > the crash when trying to connect the signal to a slot. > > I'm using PyQt 4.9.1 and sip 4.13.2. I've attached a simple project to > demonstrate the problem. > > David SIP should probably complain about the typedef as you are effectively providing two definitions for StringList. Also in the current snapshot at least, you get a sensible exception. Thanks, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-09-28 Thread Phil Thompson
ugin_dir.toUcs4(); > > It looked like QVector was not defined, so I fixed the error including the > line: > #include > > at the start of the file.After that, the file compiled fine. > > Tom Already fixed. Phil ___ PyQt mailing l

[PyQt] Upcoming Release of PyQt v5.1

2013-09-28 Thread Phil Thompson
figuration file) but working out all the steps to create and install a complete Python/Qt5/PyQt5 environment will take some investigation. If anybody wants to have a go at this then please go ahead. Phil ___ PyQt mailing listPyQt@riverba

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

2013-09-14 Thread Phil Thompson
re in Mixin ... > > > I just don't understand why. Should I submit an executable test case? PyQt emulates the Qt behaviour - signals can only be defined in QObject sub-classes. The error message assumes that Qt classes are always the first super-class. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[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
ng about the Designer plugin and the QML plugin, in particular. > Are > they Python version independent (I'm inclined on "no")? What can be done > to > ensure proper coinstallation of PyQt with both Py2 and Py3? Do the same as what you do with PyQt4 - whatever that is.

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

2013-09-10 Thread Phil Thompson
r of the argument) or it is a callable (in which case it is placed in a variable called a?Callable). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt5 cannot import QtWebKit

2013-09-05 Thread Phil Thompson
QtSvgQtWidgets > QtCore QtDesigner QtHelp > QtMultimediaWidgets QtOpenGL QtQml > QtSqlQtTest QtXmlPatterns > > > Is there a flag I missed on build? Run configure

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

2013-09-02 Thread Phil Thompson
pe::type(_name.constData()); > > (I know how bad this is, but it's for demonstration purpose.) > > The output of the test program is then : > > > itemChange return value : 0x89ba1dc> > itemChange return value : 0x89ba1dc> > > > > Any ideas on how to fix this properly ? Should be fixed in tonight's PyQt5 snapshot. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Simple patch for pylupdate4

2013-09-01 Thread Phil Thompson
he patch only works for Python source files that have > Unix-style line endings, but doesn't make things any worse for other > newline styles. Ideally, Python source files would be read in some kind > of universal newlines mode... > > Could you please includ

Re: [PyQt] Crash in frozen PyQt5 app

2013-08-30 Thread Phil Thompson
rbage collected later. Personally I never use a main() function and put the code at the module level under "if __name__ == '__main__'". It should only be a few lines anyway. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-08-27 Thread Phil Thompson
anchors.centerIn: parent > text: "Hello World" > } > MouseArea { > anchors.fill: parent > onClicked: { > Qt.quit(); > } > } > } You need to connect up the engine's quit() signal... quickview.engine().quit.connect(app.quit) Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[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

[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
hereas on the Pi, libpython lives here: >> /usr/lib/arm-linux-gnueabihf/ > > This patch solves the problem here: http://paste.debian.net/28414/ > > "MULTIARCH" config var is available in Python 2.7.4+ and 3.3.1+ > according to https://wiki.

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.

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@riverbankcomput

[PyQt] ANN: PyQt v5.0.1 Released

2013-08-21 Thread Phil Thompson
cene. - The DBus main loop module has been renamed to dbus.mainloop.pyqt5 from dbus.mainloop.qt. - Added the --no-qml-plugin and --qml-plugindir options to configure.py. - Added many QtMultimedia, QML and QtQuick related examples. - Classes now support co-operative multi-inheritance. (This may

[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
is owned by Python." Could I get > some clarification on this? > > [1] > http://pyqt.sourceforge.net/Docs/sip4/annotations.html#function-annotation-Factory > [2] http://pyqt.sourceforge.net/Docs/sip4/using.html#id7 The first reference is incorrect, it should be Python. Ph

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

2013-07-12 Thread Phil Thompson
gt; destructor of the wrapped c++ instance (this is done during > destruction of ParentObject). The Python destructor will not call the C++ destructor if the C++ instance has a parent. If you think it does then provide a test case that demonstrates it. > I am wondering

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

2013-07-10 Thread Phil Thompson
details: > http://bugs.python.org/issue17330 > > Thanks, > Richard Mitchell Thanks - note to self, buy a faster Mac. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Accessing a toggle button without clicking on it

2013-07-09 Thread Phil
On 09/07/13 17:03, Giuseppe Corbelli wrote: On 07/07/2013 11:51, Phil wrote: Thank you for reading this. How to I access my toggle button slot without clicking on the button? For example: if hr == 19: # this button is accessible self. on_pushButton_clicked() # this fails because checked is

Re: [PyQt] pyqt and qt 5.1

2013-07-08 Thread Phil Thompson
will be able to do it with the next release (PyQt v5.0.1). The new features of Qt v5.1 will be supported by the release after that (PyQt v5.1). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] make error in PyQt4 install

2013-07-07 Thread Phil Thompson
‘sipClassTypeDef {aka _sipClassTypeDef}’ > make[1]: *** [sipQtCoreQTimerEvent.o] Erreur 1 > make[1]: quittant le répertoire « > /home/vincent/Téléchargements/PyQt-x11-gpl-4.10.2/QtCore » > make: *** [sub-QtCore-make_default-ordered] Erreur 2 Some more information would be useful. As nobody

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

2013-07-07 Thread Phil Thompson
licate symbols. What I have not been able to figure out though is > exactly why this is happing and how to fix it. I have not manually edited > any of the PyQt files and I would think "make clean" should have taken care > of duplicates from my prior i

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

2013-07-07 Thread Phil Thompson
l with PyQt4 and PyQt5. It's a Qt bug - they've broken compatibility. There will be a workaround in tonight's snapshots. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Accessing a toggle button without clicking on it

2013-07-07 Thread Phil
@pyqtSignature("") def on_pushButton_clicked(self): @pyqtSignature("bool") def on_ledButton_toggled(self, checked): -- Regards, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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 i

Re: [PyQt] QCoreApplication.translate()

2013-07-05 Thread Phil Thompson
g google but i found only > people with the same problem but no solution. > Looks like an pylupdate4 issue. pylupdate parses the Python source file. It can't know that you are using a translation function with a different name. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-07-05 Thread Phil Thompson
wever, this trick seems quite unreliable because these magic numbers > (1800, 2100, etc.) might vary from version to version. So is there any > elegant way to wrap these types? > > In addition, I personally think it is favourable to generate `sipType's

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 a

Re: [PyQt] APPCrash on exit, Qt4 MainWindow

2013-07-03 Thread Phil Thompson
Fault Module Name:QtGui4.dll > Fault Module Version:4.8.4.0 > > About 10% of the time, the first time I run the app, it will not crash > until I run it again, click on some widgets, etc, and then exit. Try experimenting with sip.setdestroyonexit(). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-07-03 Thread Phil Thompson
syntax? Any suggestions are welcome :) > > P.S. I know python is object-oriented, but I think this particular > approach is still pratically useful in some situations (and OOP > itself is not a "silver bullet"), so it might not be meaningless to > implement this. You can't do it. Python needs to support module level descriptors for it to be implemented. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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
ot. In fact the current snapshot fully implements QtMultimedia and QtMultimediaWidgets. I'm just in the process of porting the camera example (seems to work fine). Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Drawing on a QFrame

2013-06-28 Thread Phil
On 28/06/13 18:56, Phil Thompson wrote: 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 wit

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

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

2013-06-28 Thread Phil Thompson
> -p macx-llvm > > It's odd though, even on OS X 10.7, I get macx-g++ as the default for SIP. > > If PyQt 5 ignores SIP for the spec, maybe there's a similar option when > compiling PyQt 5 to set the spec. It's --spec Phil _

[PyQt] Drawing on a QFrame

2013-06-27 Thread Phil
re.Qt.yellow, 4) qp.setPen(pen) frame.drawLine(event, qp) qp.end() def drawLine(frame, event, qp): qp.drawLine(10, 10, 30, 30) -- Regards, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomput

Re: [PyQt] Kled module

2013-06-27 Thread Phil
example, I'll have another play when I get a chance. -- Regards, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-06-26 Thread Phil Thompson
ethodCode > . > %End. > > > But sip complains about the syntax error at line "%MethodCode". I am using > sip_4_13_2. You have to duplicate the %MethodCode in each of the %If blocks. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Kled module

2013-06-25 Thread Phil
On 25/06/13 22:34, Robert Kent wrote: Hi Phil, I don't know about using Kled, but I have an LED widget written in pure python/PyQt4 which may suit your needs. You can download it from my google code page here: https://code.google.com/p/gulon-soft/downloads/list Thank you Robert, Olive

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
it as such? (Even the upstream Debian Sid > packages have the same situation.) Or is Sip the same for both Py2 and > Py3 in which case I should install python-sip-dev even for Py3? The code generator is the same for all Python versions. Phil ___

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

2013-06-25 Thread Phil Thompson
if os.access(os.path.join(qt_config.QT_INSTALL_LIBS, >> 'QtCore.framework'), os.F_OK): >> self.qt_framework = True > > > I'm by no means a Python expert (I'm at the beginning of learning Qt, > certainly), but qt_co

[PyQt] Kled module

2013-06-24 Thread Phil
a Kled to a PyQt project? -- Regards, Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt5 installation

2013-06-24 Thread Phil Thompson
ific bug. I was trying to avoid a warning message when stripping a shell script. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[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

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

2013-06-23 Thread Phil Thompson
> these modules co-installable, and it will be possible to use > dbus.mainloop.qt in PyQt4 apps and dbus.mainloop.qt5 in PyQt5 apps. Good point. Maybe it would be more explicit to call it pyqt5 rather than qt5 (to avoid confusion with the PyQt4 built on Qt5 case)? Phil _

Re: [PyQt] QRegularExpression missing from PyQt4

2013-06-23 Thread Phil Thompson
27;m not including new Qt5 things in PyQt4. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Strange observation

2013-06-21 Thread Phil Thompson
rsor has been deleted > > What is wrong with my code? Probably... overrideCursor() returns a pointer to an internal copy of the cursor. This is deleted by restoreOverrideCursor(). Before calling restoreOverrideCursor() make a copy... cursor = QCursor(cursor) Phil ___

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.

[PyQt] ANN: PyQt v5.0 Released

2013-06-17 Thread Phil Thompson
. Unfortunately these cannot co-exist with the PyQt4 installers. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[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 > DLL. Adding > "-lpython33_d" to each Makefile.Debug and "-lpython33" to Makefile.Release > solves this. > > I tried adding LFLAGS_DEBUG+="-lpython33_d" as parameter to the configure > script, but it had > no effect on the makefiles. > &g

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
IP v4.12 this is done for you. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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
to make a release in the next two weeks. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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

2013-06-08 Thread Phil Thompson
gt;- PyQt 4.10.1 >- SIP 4.14.6 >- Python 2.7.4 > > Is it still a bug? Difficult to say without a short, complete example that demonstrates the problem. The user data is correctly owned by the QTextDocument that the highlighter is operating on. However

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

2013-06-08 Thread Phil Thompson
similar. > If I'm not doing something wrong, do you want my patches to SIP and PyQt5? Always happy to consider patches. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QApplication and datetime.strptime

2013-06-05 Thread Phil Thompson
gt; - Is there perhaps a known alternative to datetime.strptime, where I can > define the locale temporarily or which works with pyqt ? > > Thanks in advance > > Michka Popoff Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Missing QVectorD Classes

2013-06-05 Thread Phil Thompson
asses in QtGui where I expected them, but > didn't see them. > > Any help would be much appreciated! > Thanks > Jay You need PyQt v4.7 or later. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Custom widgets in Qt5

2013-06-05 Thread Phil Thompson
ten in Python. > > So, it's an other place for theses plugins or it's not already supported > in PyQt5 ? In PyQt5 the plugin is called libpyqt5.so. Which directory it goes in depends on how your Qt5 installation is configured. Phil

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

2013-06-02 Thread Phil Thompson
ttr(widget, "set%s%s" % (ascii_upper(prop_name[0]), > prop_name[1:]))(prop_value) > AttributeError: 'QHBoxLayout' object has no attribute 'setMargin' > > > The log_window.ui instantiates a QHBoxLayout,

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
cess has terminated for other reasons). Is that possible? > > If I can't guarantee that from PyQt, can I write a simple sip wrapper that > will achieve the same end, without copying and pasting the Qt code? sip.setdestroyonexit() might do what you want. Phil ___

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
cessary I'd be willing to add > the support myself with a little guidance (depending on how complicated > it is). It will be added after the release of PyQt 5.0. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

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
t;>>> import weakref >>>> ref = weakref.ref(img) >>>> del img >>>> ref > # QImage was collected >>>> sys.getrefcount(addr) # but refcount is still 3 > 3 > > > Can anyone recommend a good way to convert from ndarray to QImage >

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

2013-05-24 Thread Phil Thompson
explode.txt" logfile in append mode, while C++ > uses > qDebug() They work the same as far as I can tell - though it's difficult to see as the outputs are different. The programs themselves are too different to be a sensible comparison. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

  1   2   3   4   5   6   7   8   9   10   >