[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] PyQt4 bug bool(QComboBox())
From: Sebastian Sauer <mail () dipe ! org>
Date: 2013-07-29 16:52:48
Message-ID: 51F69DE0.2070805 () dipe ! org
[Download RAW message or body]
Aloha,
following interesting bug(?) I run into:
>>> from PyQt4 import QtGui, QtCore
>>> import sys
>>> app = QtGui.QApplication(sys.argv)
>>> c = QtGui.QComboBox()
>>> c
<PyQt4.QtGui.QComboBox object at 0x83001dc>
>>> isinstance(c,QtCore.QObject)
True
>>> bool(c)
False
That, bool(c) returns False, is not expected or wanted or is it?
p.s. thanks for the great work Phil & PyQt community :)
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic