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()
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()
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()
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()