Example #1
0
    def __init__(self):
        self.names = {}
        self.connected = False
        self.blockchainUptodate = False
        self.inPoll = False
        self.stopped = False
        self.blockCount = None
        self.balance = -1
        self.firstUpdateQueue = []
        self.updateCount = 0
        self.blockHashPrev = None
        self.listSinceBlockPrev = None
        self.isLocked = None

        self.passphrase = None

        self.unlocked = False  # did we unlock the wallet?

        self.unlockNeeded = None

        util.ensure_dirs(shared.CONFFOLDER)
        self.nameNewDb = lineperdic.LPD(shared.NAMENEWDBFILENAMEPATH)

        self.log = shared.get_my_logger(name=__file__)

        datadir = shared.args.namecoindatadir
        # rpc does currently not work asynchronously
        self._rpc = namerpc.CoinRpc(connectionType="client", datadir=datadir)  # poll
        self.rpc = namerpc.CoinRpc(connectionType="client", datadir=datadir)  # other functions

        self._doStop = False
        self._updateNow = False
        self._initialUpdate = True

        self._pollThread = threading.Thread(target=self._poll)
        self.log.info("model poll start ----------------------------------")
        self._pollThread.start()
Example #2
0
    import tkMessageBox
    import namedialog
    import jsonhyper

    import model
    import antpy

    import util

except ImportError as e:
    exception_display(" Try 'pip install " + e.message.split(' ')[-1] + "'")
except:
    exception_display("Launch Error:")

util.ensure_dirs(shared.CONFFOLDER)


class SelectionEmptyError(Exception):
    pass


class Gui(object):
    def __init__(self):
        log.info(
            "__init__ #########################################################"
        )
        self.root = tk.Tk()
        self.root.withdraw(
        )  # hide for now in case an error comes up so the error window is visible
Example #3
0
    import tkMessageBox
    import namedialog
    import jsonhyper

    import model
    import antpy

    import util

except ImportError as e:
    exception_display(" Try 'pip install " + e.message.split(' ')[-1] + "'")
except:
    exception_display("Launch Error:")

util.ensure_dirs(shared.CONFFOLDER)

class SelectionEmptyError(Exception):
    pass

class Gui(object):
    def __init__(self):
        log.info("__init__ #########################################################")
        self.root = tk.Tk()
        self.root.withdraw()  # hide for now in case an error comes up so the error window is visible

        # keyboard shortcuts
        self.root.bind("<Control-r>", self.renew)
        self.root.bind("<Control-c>", self.configure)

        # client info