<div class="gmail_quote">2012/3/18 Ramiro Algozino <span dir="ltr"><<a href="mailto:algozino@gmail.com">algozino@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello!<div><br></div><div> Today I was designing a window for my application and happily discovered that designer now supports using fromTheme icons in actions and buttons! :-D but when I use the .ui file I get this error:</div>
<div><br></div><div>[...]</div><div><div> File "/usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py", line 106, in _file_name</div><div> fname = fname.replace("\\", "\\\\")</div><div>
AttributeError: 'NoneType' object has no attribute 'replace'</div><div><br></div><div>am I doing something wrong or is this some kind of bug? If I set an arbitrary file icon instead a fromTheme one everything works just fine.. :-( I would really like to set the system theme icons from designer instead of having to do it from code to keep the code cleaner.</div>
<div><br></div><div>This is how I load the ui:</div><div><br></div><div><div>class MainWindow(QtGui.QMainWindow):</div><div> def __init__(self, app):</div><div> QtGui.QMainWindow.__init__(self)</div><div> uic.loadUi('main.ui', self)</div>
</div><div><br></div><div><br></div><div>Thank you!</div><span class="HOEnZb"><font color="#888888">-- <br>Ramiro Algozino<br><a href="http://ramiroalgozino.com.ar/" target="_blank">http://ramiroalgozino.com.ar/</a><br>
</font></span></div>
</blockquote></div><br><br><div>Sorry, I forgot to add that I'm on Fedora 16, with all the packages up-to-date. My PyQt4 version is 4.8.6, Qt4 is 4.8.0 and QtDesigner is 4.8.0.<br><br><div><br></div>-- <br>Ramiro Algozino<br>
<a href="http://ramiroalgozino.com.ar/" target="_blank">http://ramiroalgozino.com.ar/</a><br>
</div>