Exemple #1
0
class UpdateNotifyWindow( QWidget, FlashWindow ) :
    def __init__( self, reactor, installCallback ) :
        QWidget.__init__( self )
        self.ui = Ui_UpdateNotifyWindow()
        self.ui.setupUi( self )
        FlashWindow.__init__( self, reactor )
        self.installCallback = installCallback
        self.show()
        self.flash()

    @pyqtSignature( '' )
    def on_installUpdateButton_clicked( self ) :
        self.installCallback()

    def closeEvent( self, ev ) :
        ev.ignore()
Exemple #2
0
class UpdateNotifyWindow(QWidget, FlashWindow):
    def __init__(self, reactor, installCallback):
        QWidget.__init__(self)
        self.ui = Ui_UpdateNotifyWindow()
        self.ui.setupUi(self)
        FlashWindow.__init__(self, reactor)
        self.installCallback = installCallback
        self.show()
        self.flash()

    @pyqtSignature('')
    def on_installUpdateButton_clicked(self):
        self.installCallback()

    def closeEvent(self, ev):
        ev.ignore()