示例#1
0
文件: dialogs.py 项目: hj91/cspace
 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()
示例#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()
示例#3
0
文件: dialogs.py 项目: hj91/cspace
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()
示例#4
0
 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()