[PyQt] Re: simple newb question

Neal Becker ndbecker2 at gmail.com
Fri Aug 8 13:51:33 BST 2008


Neal Becker wrote:

> Phil Thompson wrote:
> 
>> On Thu, 07 Aug 2008 21:04:14 -0400, Neal Becker <ndbecker2 at gmail.com>
>> wrote:
>>> import sys
>>> from PyQt4.QtCore import *
>>> from PyQt4.QtGui import *
>>> 
>>> app = QApplication (sys.argv)
>>> ret = QMessageBox.question (None, "My App", "You have mail")
>>> print ret
>>> 
>>> Why doesn't this display any icon?  The docs say that I should see an
>>> icon, varying with whether I used '.question', or '.warning', etc.
>> 
>> Works for me.
>> 
>> Phil
> 
> Not for me: Fedora F9 qt-4.4.0-16.fc9.x86_64 PyQt4-4.4.2-2.fc9.x86_64
Here's what I get:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snapshot36.png
Type: image/png
Size: 9502 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080808/d93d22a0/snapshot36.png


More information about the PyQt mailing list