monospace

This commit is contained in:
ThomasV 2012-03-31 16:46:32 +02:00
parent 003c3e157f
commit 3ee5561488
2 changed files with 5 additions and 2 deletions

View File

@ -27,7 +27,8 @@ from decimal import Decimal
gtk.gdk.threads_init()
APP_NAME = "Electrum"
MONOSPACE_FONT = "monospace"
import platform
MONOSPACE_FONT = 'Lucida Console' if platform.system() == 'Windows' else 'monospace'
from wallet import format_satoshis
from interface import DEFAULT_SERVERS

View File

@ -36,7 +36,9 @@ except:
from wallet import format_satoshis
from decimal import Decimal
MONOSPACE_FONT = 'monospace'
import platform
MONOSPACE_FONT = 'Lucida Console' if platform.system() == 'Windows' else 'monospace'
def numbify(entry, is_int = False):
text = unicode(entry.text()).strip()