[PyQt] A possible bug in PyQt when loading Boolean values via QSettings

Xavion xavion.0 at gmail.com
Sat Dec 25 23:45:37 GMT 2010


After further research, not even the following code works:

User.System.bPreferSUdo = bool( str.title( oItems ) )
>

I had to use the following code, which isn't exactly pretty:

User.System.bPreferSUdo = ( oItems == True ) or ( oItems == "true" )
>

The second method takes into account that the value could be coming from
cache or file.  Are you sure that this is how you want it to be for PyQt
programmers on Linux from now on?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101226/4f25a7cd/attachment.html>


More information about the PyQt mailing list