Ejemplo n.º 1
0
 def __init__(self, reactor=None, parent=None):
     self.password = Model("")
     self.repeat = Model("")
     self.check = Model(False)
     self.PATH = os.getcwd()
     self.NAME = 'pdash-account-' + dt.now().strftime('%Y-%m-%d %H:%M:%S')
     super().__init__(reactor, parent)
     self.loading = GeneratingWindow(reactor, self)
     self.username = UserNameWindow(reactor, self)
     self.backup = BackupWindow(reactor, self, self.PATH + '/' + self.NAME,
                                self.username)
     self.created.connect(self._after)
Ejemplo n.º 2
0
 def __init__(self, reactor=None, parent=None):
     self.password = Model("")
     self.repeat = Model("")
     self.check = Model(False)
     self.PATH = os.path.expanduser('~/.cpchain/keystore')
     if not os.path.exists(self.PATH):
         os.mkdir(self.PATH)
     self.NAME = 'pdash_account_' + dt.now().strftime('%Y%m%d%H%M%S')
     super().__init__(reactor, parent)
     self.loading = GeneratingWindow(reactor, self)
     self.username = UserNameWindow(reactor, self)
     self.backup = BackupWindow(reactor, self, self.PATH + '/' + self.NAME,
                                self.username)
     self.created.connect(self._after)
Ejemplo n.º 3
0
 def __init__(self, model, width, height):
     self.width = width
     self.height = height
     self.check = model or Model(False)
     super().__init__()
     self.ui()
     self.style()
Ejemplo n.º 4
0
    def __init__(self, reactor=None, parent=None):
        self.password = Model("")
        self.file = None
        super().__init__(reactor, parent)
        self.username = UserNameWindow(reactor, self)
        # self.error_signal.connect(lambda: app.msgbox.error("Password mismatch"))
        self.imported.connect(self.onImported)

        @app.event.register(app.events.PASSWORD_ERROR)
        def password_error(_):
            self.loading_over()
            self.error_signal.emit()
Ejemplo n.º 5
0
 def __init__(self, reactor, parent):
     self.account = None
     self.is_registered_ = False
     self.username_ = ""
     self.username = Model("")
     super().__init__(reactor, parent)