Re: [PyQt] Designer -- fromTheme Icon
Fixed in tonight's snapshot. Thanks, Phil Excellent! Thank you Phil! -- Ramiro Algozino http://ramiroalgozino.com.ar/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Designer -- fromTheme Icon
2012/3/18 Phil Thompson p...@riverbankcomputing.com A copy of the .ui would help. Phil I attached a copy of the .ui; notice that the action actionDecodeFile has assigned a theme icon. -- Ramiro Algozino http://ramiroalgozino.com.ar/ main.ui Description: application/designer ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Designer -- fromTheme Icon
Hello! 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: [...] File /usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py, line 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 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. This is how I load the ui: class MainWindow(QtGui.QMainWindow): def __init__(self, app): QtGui.QMainWindow.__init__(self) uic.loadUi('main.ui', self) Thank you! -- Ramiro Algozino http://ramiroalgozino.com.ar/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Designer -- fromTheme Icon
2012/3/18 Ramiro Algozino algoz...@gmail.com Hello! 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: [...] File /usr/lib64/python2.7/site-packages/PyQt4/uic/icon_cache.py, line 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 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. This is how I load the ui: class MainWindow(QtGui.QMainWindow): def __init__(self, app): QtGui.QMainWindow.__init__(self) uic.loadUi('main.ui', self) Thank you! -- Ramiro Algozino http://ramiroalgozino.com.ar/ 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. -- Ramiro Algozino http://ramiroalgozino.com.ar/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Segmentation Fault in FileDialog
Hello! I'm having an issue with a FileDialog, a getSaveFileName type in particullar. I get a Segmentation Fault when I accept the dialog if the file doesn't exist. When I overwrite an exisiting file the segmentation doesn't occur. This is happening in Fedora 16 (Gnome3) and I have an user report saying that the same problem is present in Ubuntu 11.10. This is the code snippet I'm using [0]: def saveCode(self): fn = QtGui.QFileDialog.getSaveFileName( self, self.trUtf8('Save QRCode'), filter=self.trUtf8('PNG Images (*.png);; All Files (*.*)'), #options=QtGui.QFileDialog.DontUseNativeDialog ) I've found that if setting the option flag DontUseNativeDialog the segmentation doesn't appear and everything work as expected. Also, the problem is only present if I import the pynotify library. Not importing the PyNotify library I get this Warning when the file doesn't exist: (python:7829): Gtk-WARNING **: Unable to retrieve the file info for `file:///home/ramiro/proyectos/qr-tools/borrame2.png': Error al mostrar la información del estado del archivo «/home/ramiro/proyectos/qr-tools/borrame2.png»: No existe el fichero o el directorio. ¿Is this a PyQt / Qt problem? Thank you very much! [0] You can see the complete code here: http://bazaar.launchpad.net/~qr-tools-developers/qr-tools/trunk/view/head:/qtqr.py -- Ramiro Algozino http://ramiroalgozino.com.ar/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt