[PyQt] Designer -- fromTheme Icon
phil at riverbankcomputing.com
Sun Mar 18 10:58:18 GMT 2012
On Sun, 18 Mar 2012 02:35:52 -0300, Ramiro Algozino <algozino at gmail.com>
> 2012/3/18 Ramiro Algozino <algozino at gmail.com>
>> Today I was designing a window for my application and happily
>> that designer now supports using fromTheme icons in actions and
>> :-D but when I use the .ui file I get this error:
>> File "/usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py",
>> 106, in _file_name
>> fname = fname.replace("\\", "\\\\")
>> AttributeError: 'NoneType' object has no attribute 'replace'
>> 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
>> :-( I would really like to set the system theme icons from designer
>> of having to do it from code to keep the code cleaner.
>> This is how I load the ui:
>> class MainWindow(QtGui.QMainWindow):
>> def __init__(self, app):
>> uic.loadUi('main.ui', self)
>> Thank you!
>> Ramiro Algozino
> 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
A copy of the .ui would help.
More information about the PyQt