Esempio n. 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
Esempio n. 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
Esempio n. 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 )
Esempio n. 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)