<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><div><span>Il codice di PyQt/PySide è corretto, e se commenti la signal.alarm() puoi verificare che non si chiude al click.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Un consiglio: se fai dei test prova una cosa alla volta altrimenti rischi di dare la colpa a chi non ce l'ha.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;"><span>Gianni</span></div></span></div><div><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times
 new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">Da:</span></b> Walter Valenti <waltervalenti@yahoo.it><br> <b><span style="font-weight: bold;">A:</span></b> Discussioni generali sul linguaggio Python <python@lists.python.it> <br> <b><span style="font-weight: bold;">Inviato:</span></b> Mercoledì 27 Febbraio 2013 13:13<br> <b><span style="font-weight: bold;">Oggetto:</span></b> Re: [Python] Domanda su pyQt<br> </font> </div> <br><br>Questo è il codice:  (che non funziona comunque, lo splash si chiude col click del mouse)<br><br><br>#!/usr/bin/python<br><br>from PySide.QtCore import *<br>from PySide.QtGui import *<br>import sys, time<br>import signal<br><br>signal.alarm(2)<br><br>class MySplashScreen(QSplashScreen):<br>    def mousePressEvent(self,event):<br>        pass<br><br>app =
 QApplication(sys.argv)<br>splash_pix = QPixmap('/home/walter/.mozilla/about.png')<br>splash = MySplashScreen(splash_pix,Qt.WindowStaysOnTopHint)<br>splash.setMask(splash_pix.mask())<br>splash.show()<br>app.exec_()<br><br>_<br> </div> </div>  </div></body></html>