[PyQt] findChildren(): default for type?
Giovanni Bajo
rasky at develer.com
Sat Mar 7 17:11:30 GMT 2009
Hello,
any reason why findChild() / findChildren() don't support a default for the
"type" argument (which would be QObject of course) like they do in C++? In
PyQt I'm always forced to write code like this:
groupBox.findChild(QWidget, "theLabel")
instead of:
groupBox.findChild("theLabel")
I believe this could be done in a fully backward compatible way, right? If
so, we can prepare a patch.
--
Giovanni Bajo
Develer S.r.l.
http://www.develer.com
More information about the PyQt
mailing list