Exemple #1
0
 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
Exemple #2
0
 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
Exemple #3
0
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 )
Exemple #4
0
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)