X-Git-Url: https://git.novaco.in/?p=electrum-nvc.git;a=blobdiff_plain;f=gui%2Fstdio.py;fp=gui%2Fstdio.py;h=8b0360ef368765291547360017ef943d593e20df;hp=54067d55cb51ebbb741faa7826431429611647ad;hb=3cbe11a42473af52e7c5e002c36aaaf32646f627;hpb=068609b4a65a172a15a24299b8a0fad0ef82898c diff --git a/gui/stdio.py b/gui/stdio.py index 54067d5..8b0360e 100644 --- a/gui/stdio.py +++ b/gui/stdio.py @@ -1,10 +1,10 @@ from decimal import Decimal _ = lambda x:x #from i18n import _ -from electrum import mnemonic_encode, WalletStorage, Wallet -from electrum.util import format_satoshis, set_verbosity -from electrum.bitcoin import is_valid -from electrum.network import filter_protocol +from electrum_nvc import mnemonic_encode, WalletStorage, Wallet +from electrum_nvc.util import format_satoshis, set_verbosity +from electrum_nvc.bitcoin import is_valid +from electrum_nvc.network import filter_protocol import sys, getpass, datetime # minimal fdisk like gui for console usage @@ -17,7 +17,7 @@ class ElectrumGui: self.config = config 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.done = 0 @@ -124,8 +124,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" ) @@ -171,15 +171,15 @@ class ElectrumGui: def do_send(self): if not is_valid(self.str_recipient): - print(_('Invalid Bitcoin address')) + print(_('Invalid Novacoin address')) return try: - amount = int( Decimal( self.str_amount) * 100000000 ) + amount = int( Decimal( self.str_amount) * 1000000 ) except Exception: print(_('Invalid Amount')) return try: - fee = int( Decimal( self.str_fee) * 100000000 ) + fee = int( Decimal( self.str_fee) * 1000000 ) except Exception: print(_('Invalid Fee')) return @@ -218,12 +218,12 @@ class ElectrumGui: print(_('Error')) def network_dialog(self): - print("use 'electrum setconfig server/proxy' to change your network settings") + print("use 'electrum-nvc setconfig server/proxy' to change your network settings") return True def settings_dialog(self): - print("use 'electrum setconfig' to change your settings") + print("use 'electrum-nvc setconfig' to change your settings") return True def password_dialog(self):