[PyQt] empty container in QSettings: TypeError

2013-03-17 Thread Wilbert Berendsen
recent call last): File stdin, line 1, in module TypeError: unable to convert a QVariant of type 0 to a QMetaType of type 10 What is the most elegant way to circumvent this? cathing the TypeError and returning the empty list? Best regards, Wilbert -- Wilbert Berendsen (http

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

2013-03-12 Thread Wilbert Berendsen
Op Mon, 11 Mar 2013 14:01:21 + Phil Thompson p...@riverbankcomputing.com schreef: On Mon, 11 Mar 2013 11:13:15 +0100, Wilbert Berendsen wbs...@xs4all.nl wrote: Hi, It seems sip 4.14.3 forgets QTextUserData objects. (...) Note that it isn't forgotten that there is a QTextUserData

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

2013-03-11 Thread Wilbert Berendsen
Op 11-03-13 15:01, Phil Thompson schreef: It's a PyQt bug - fixed in tonight's snapshot. Thanks. Users of my application (Frescobaldi) also have some problems that could relate to QTreeWidgetItems also losing their own instance attributes (even when using a subclass of QTreeWidgetItem).

[PyQt] QTreeWidgetItem also forgets its Python counterpart

2013-03-11 Thread Wilbert Berendsen
counterpart is forgotten and a new wrapped object is created. Wilbert -- Wilbert Berendsen (http://www.wilbertberendsen.nl) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] QPyNullVariant

2012-07-26 Thread Wilbert Berendsen
be nice if the returned value would be forced in the type of the default value if specified. When I must check for more possible types to be returned, I must create a wrapper function for it, I guess Wilbert -- Wilbert Berendsen (http://www.wilbertberendsen.nl

[PyQt] Crash (assert fail) in 'sip_api_convert_from_new_type'

2012-02-27 Thread Wilbert Berendsen
The binding code is here: http://code.google.com/p/python-poppler-qt4/source/browse/#svn%2Ftrunk%2Fpython-poppler-qt4 What could be the cause of the failed assertion? Is it a bug in the binding code of python-poppler-qt4, or in SIP itself? Thanks for any enlightment :) -- Wilbert Berendsen (http

Re: [PyQt] Text write on effect

2012-02-27 Thread Wilbert Berendsen
that regularly updates the label text (attached). -- Wilbert Berendsen (http://www.wilbertberendsen.nl) #!/usr/bin/env python import os import sys from PyQt4 import QtCore, QtGui, uic from PyQt4.QtCore import ( QString ) class BasicWindow(QtGui.QMainWindow): def __init__(self, parent=None

Re: [PyQt] stand alone QFileDialog

2011-05-27 Thread Wilbert Berendsen
#qfiledialog w best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

[PyQt] event() gets called but C++ object already deleted

2011-05-25 Thread Wilbert Berendsen
workaround to simply wrap the return super... line in a try/except clause? Or is there a better way to prevent this? Can I prevent that event() is called while the c++ object is not living anyway? with best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you

[PyQt] SOLVED Re: event() gets called but C++ object already deleted

2011-05-25 Thread Wilbert Berendsen
. Deletion is then handled by Qt and now event() is not called on the wrong moment during the object deletion. w best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi

[PyQt] QApplication.saveStateRequest does not work well with PyQt 4.8

2011-05-20 Thread Wilbert Berendsen
. On PyQt4.8 the old way of connecting does work, however: QObject.connect(qApp, SIGNAL(saveStateRequest(QSessionManager)), saveState) does work correctly on both PyQt versions (4.7 and 4.8). Is this intended? with many regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must

Re: [PyQt] visualizing PDF files in PyQT WIndows

2011-04-22 Thread Wilbert Berendsen
Op maandag 18 april 2011 schreef Jeremy: Is there any recommended way to visualize PDF files with PyQT under Windows? python-poppler-qt4 is a Python binding to the Poppler PDF library: http://code.google.com/p/python-poppler-qt4/ w best regards, Wilbert Berendsen -- http

[PyQt] c array question

2010-10-26 Thread Wilbert Berendsen
thanks, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] c array question

2010-10-26 Thread Wilbert Berendsen
Op dinsdag 26 oktober 2010 schreef Phil: You will have to provide some handwritten code. Thanks! best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi

[PyQt] KAction gets deleted prematurely

2010-02-12 Thread Wilbert Berendsen
way (using QObject.connect(action, SIGNAL(triggered()) etc etc) the KAction gets deleted, but not when I use the modern way: action.triggered.connect(func) w best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world

Re: [PyQt] Python bindings for Poppler-Qt4, pypoppler-qt4

2009-12-03 Thread Wilbert Berendsen
googlecode SVN project for it and maintain the source there, providing versioned tarballs for others to use as soon as it is complete? That way this nice binding could become part of distributions instead of everyone including its own fork (which is OK of course). with many regards, Wilbert Berendsen

Re: [PyQt] Python bindings for Poppler-Qt4, pypoppler-qt4

2009-12-03 Thread Wilbert Berendsen
place to provide source tarballs I can point users of my application to. Best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt

[PyQt] Python bindings for Poppler-Qt4, pypoppler-qt4

2009-12-01 Thread Wilbert Berendsen
chance this nice package gets updated? Otherwise I'll try myself but then I need to learn SIP a lot better. :) with best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi

[PyQt] object using deleteLater(), signal destroyed() not emitted

2009-11-15 Thread Wilbert Berendsen
(KDE) test app to demonstrate the problem. Is this a bug or should I use another way of doing this? Attached the small test app. When the user logs out the terminal, a message should be printed on stdout. w best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must

[PyQt] crash when not saving pointer to KTextEditor.View.selectionRange() result

2009-08-08 Thread Wilbert Berendsen
a KTextEditor.Cursor instance. w best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

[PyQt] PyQt-4.5 KConfigGroup incompatibility problem?

2009-07-19 Thread Wilbert Berendsen
my program working in both PyQt 4.4 and 4.5 should I change every call to: r = config.readEntry('blaat', QVariant('bla')).toString() ? Many thanks for an enlightening answer, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world

[PyQt] [PyKDE4] accessing OkularPart's own methods

2008-12-24 Thread Wilbert Berendsen
Hi, when I embed a okular part (using: part = KPluginLoader(okularpart).factory().create(mymainwindow) I get the kpart, but how can I access it's own methods (besides those of KPart) e.g. slotPrint() ? Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish

[PyQt] [PyKDE4] Bug? missing KTextEditor.Editor.setSimpleMode

2008-10-30 Thread Wilbert Berendsen
Hi, I would like to embed KTextEditor in a configurable way in my application, but unfortunately PyKDE4 does not have the setSimpleMode() method on the KTextEditor.Editor object. It seems it's missing from the sip file in KDE 4.1.2 Is this a bug? with best regards, Wilbert Berendsen -- http

[PyQt] PyKDE4, KApplication and DBus

2008-10-28 Thread Wilbert Berendsen
? with best regards and TIA, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman

[PyQt] arbitrary instance attributes on qt widgets?

2008-05-05 Thread Wilbert Berendsen
Hi, Is this legal? q = QListBoxText(listbox) q.bla = 3 this sets a new attribute 'bla' to 3. I could use this to have the listboxitem carry some other data. Or should I subclass QListBoxItem to add such an attribute? with best regards, Wilbert Berendsen -- http://www.wilbertberendsen.nl

[PyQt] kdecore.KProcess.Communication enum not OR-able

2008-04-12 Thread Wilbert Berendsen
(All, AllOuput etc.). Is this a bug and is there a workaround to start a KProcess() and only communicate with stdout and stdin and not stderr? [1]http://api.kde.org/3.5-api/kdelibs-apidocs/kdecore/html/classKProcess.html#31e69eb366082bb93bbdc31e6e281019 TIA, w best regards, Wilbert Berendsen

Re: [PyQt] kdecore.KProcess.Communication enum not OR-able

2008-04-12 Thread Wilbert Berendsen
I forgot to mention the version of PyKDE: PyKDE 3.16.0 PyQT 3.17.4 KDE 3.5.8 thx, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt

Re: [PyQt] kdecore.KProcess.Communication enum not OR-able

2008-04-12 Thread Wilbert Berendsen
haven't tried it. A couple of other notes: 1. This enum isn't available in KDE4 and 2. A lot of the enums in KDE4/PyKDE4 (and Qt4) will require similar strict type-checking (everything using QFlags). Thanks for the information and explanation. w best regards, Wilbert Berendsen -- http

[partially solved] Re: [PyQt] KProcess setUsePty not there...

2008-04-12 Thread Wilbert Berendsen
Op donderdag 3 april 2008, schreef Jim Bublitz: On Wednesday 02 April 2008 08:00, Wilbert Berendsen wrote: Hi, I want to run a program that insists on reading from a terminal using KProcess (from within PyKDE), but it seems KProcess::setUsePty() does not exist: Python 2.5.1 (r251

[PyQt] KProcess setUsePty not there...

2008-04-03 Thread Wilbert Berendsen
Berendsen -- http://www.wilbertberendsen.nl/ Met vriendelijke groet, Wilbert Berendsen -- http://www.wilbertberendsen.nl/ You must be the change you wish to see in the world. -- Mahatma Gandhi ___ PyQt mailing listPyQt