X-Git-Url: https://git.novaco.in/?p=electrum-nvc.git;a=blobdiff_plain;f=gui%2Ftext.py;fp=gui%2Ftext.py;h=4cf9a9f69c3cdfa1d8a7640654812e66a39c10be;hp=0c6a1487c47e37db050e8853e61ad7c688b246bf;hb=3cbe11a42473af52e7c5e002c36aaaf32646f627;hpb=068609b4a65a172a15a24299b8a0fad0ef82898c diff --git a/gui/text.py b/gui/text.py index 0c6a148..4cf9a9f 100644 --- a/gui/text.py +++ b/gui/text.py @@ -2,10 +2,10 @@ import curses, datetime, locale from decimal import Decimal _ = lambda x:x #from i18n import _ -from electrum.util import format_satoshis, set_verbosity -from electrum.bitcoin import is_valid +from electrum_nvc.util import format_satoshis, set_verbosity +from electrum_nvc.bitcoin import is_valid -from electrum import Wallet, WalletStorage +from electrum_nvc import Wallet, WalletStorage import tty, sys @@ -18,7 +18,7 @@ class ElectrumGui: self.network = network storage = WalletStorage(config) if not storage.file_exists: - print "Wallet not found. try 'electrum create'" + print "Wallet not found. try 'electrum-nvc create'" exit() self.wallet = Wallet(storage) @@ -129,8 +129,8 @@ class ElectrumGui: msg = _("Synchronizing...") else: c, u = self.wallet.get_balance() - msg = _("Balance")+": %f "%(Decimal( c ) / 100000000) - if u: msg += " [%f unconfirmed]"%(Decimal( u ) / 100000000) + msg = _("Balance")+": %f "%(Decimal( c ) / 1000000) + if u: msg += " [%f unconfirmed]"%(Decimal( u ) / 1000000) else: msg = _("Not connected") @@ -287,15 +287,15 @@ class ElectrumGui: def do_send(self): if not is_valid(self.str_recipient): - self.show_message(_('Invalid Bitcoin address')) + self.show_message(_('Invalid Novacoin address')) return try: - amount = int( Decimal( self.str_amount) * 100000000 ) + amount = int( Decimal( self.str_amount) * 1000000 ) except Exception: self.show_message(_('Invalid Amount')) return try: - fee = int( Decimal( self.str_fee) * 100000000 ) + fee = int( Decimal( self.str_fee) * 1000000 ) except Exception: self.show_message(_('Invalid Fee')) return