[PyQt] Splash screen and WindowStaysOnTopHint flag

NARCISO, Rui RUI.NARCISO at airbus.com
Wed Mar 4 15:56:51 GMT 2009


I was under the impression we always needed to do:
from PyQt4.QtGui import *
from PyQt4.QtCore import *

If QtGui imports already QtCore is it not redundant ? If so, what would be the "right" way to do it ?

Rui


-----Message d'origine-----
De : pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com]De la part de Phil Thompson
Envoyé : mercredi 4 mars 2009 16:31
À : Frédéric
Cc : pyqt at riverbankcomputing.com
Objet : Re: [PyQt] Splash screen and WindowStaysOnTopHint flag


On Wed,  4 Mar 2009 16:06:18 +0100 (CET), Frédéric
<frederic.mantegazza at gbiloba.org> wrote:
> Hello,
> 
> I use a splashscreen to show something before loading all modules. This
> is especially usefull on small and slow devices, like Nokia N8x0.
> 
> I would like to use the WindowStaysOnTopHint flag, to ensure splashscreen
> appears on top, but this also requires the QtCore module, which is very
> long to load on Nokia. So, the splashscreen loose some interest...
> 
> How can I avoid this problem? It should be nice to have this flag in a
> small module...

The QtCore module is always loaded. If you import the QtGui module the
first thing it does (after importing the sip module) is to import the
QtCore module.

Phil
_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other then the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.




More information about the PyQt mailing list