def __init__(self, parent, profile, closeCallback): QDialog.__init__(self, parent) self.ui = Ui_KeyInfoDialog() self.ui.setupUi(self) self.ui.keyId.setText(profile.keyId) pemPublicKey = profile.rsaKey.toPEM_PublicKey() self.ui.publicKey.setPlainText(pemPublicKey) self.closeCallback = closeCallback
def __init__( self, parent, profile, closeCallback ) : QDialog.__init__( self, parent ) self.ui = Ui_KeyInfoDialog() self.ui.setupUi( self ) self.ui.keyId.setText( profile.keyId ) pemPublicKey = profile.rsaKey.toPEM_PublicKey() self.ui.publicKey.setPlainText( pemPublicKey ) self.closeCallback = closeCallback
class KeyInfoDialog( QDialog ) : def __init__( self, parent, profile, closeCallback ) : QDialog.__init__( self, parent ) self.ui = Ui_KeyInfoDialog() self.ui.setupUi( self ) self.ui.keyId.setText( profile.keyId ) pemPublicKey = profile.rsaKey.toPEM_PublicKey() self.ui.publicKey.setPlainText( pemPublicKey ) self.closeCallback = closeCallback def done( self, r ) : QDialog.done( self, r ) self.close() def closeEvent( self, ev ) : self.closeCallback() delaygc( self ) QDialog.closeEvent( self, ev )
class KeyInfoDialog(QDialog): def __init__(self, parent, profile, closeCallback): QDialog.__init__(self, parent) self.ui = Ui_KeyInfoDialog() self.ui.setupUi(self) self.ui.keyId.setText(profile.keyId) pemPublicKey = profile.rsaKey.toPEM_PublicKey() self.ui.publicKey.setPlainText(pemPublicKey) self.closeCallback = closeCallback def done(self, r): QDialog.done(self, r) self.close() def closeEvent(self, ev): self.closeCallback() delaygc(self) QDialog.closeEvent(self, ev)