Re: Anfänger braucht Hilfe bei Qt4
Verfasst: Donnerstag 6. März 2014, 10:14
@opccorsa: Und wo bindest Du `passfail` an einen Wert? Da steht ja jetzt nur `QWidget` und das hat so ein Attribut tatsächlich nicht.
Seit 2002 Diskussionen rund um die Programmiersprache Python
https://www.python-forum.de/
Code: Alles auswählen
In [13]: w = QtGui.QLCDNumber()
In [14]: w.value()
Out[14]: 0.0
In [15]: w.does_not_exist
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-15-a39698b89428> in <module>()
----> 1 w.does_not_exist
AttributeError: 'QLCDNumber' object has no attribute 'does_not_exist'