I have discovered a bug in pyuic4.<br><br>Versions :<br>os        : ubuntu linux 9.10 (Karmic Koala)<br>python : 3.1<br>qt         : 4.5.3<br>pyqt     : 4.6.1<br>sip       : 4.9.1<br><br>I have installed both Qt and PyQt via downloading sources and compiling it myself.<br>
<br>Bug Description :<br>Any MainWindow created via designer which contains a toolbar, failes to compile to python code via pyuic4.<br><br>Steps to reproduce this bug :<br>1. Open Designer, create a MainWindow<br>2. Add a toolbar to it<br>
3. Save the .ui file.<br>4. Invoke pyuic4 on it, with -d option<br><br>It will show a python exception at line:240 in $PYQT_HOME/lib/python3.1/site-packages/PyQt4/uic/uiparser.py<br>It says that &#39;basestring&#39; doesnt exist.<br>
<br>Indeed, in Python-3.1 there is no such type as &#39;basestring&#39;.<br>Changing &#39;basestring&#39; to just &#39;str&#39; seems to fix this for me.<br>