From 7da653f4c4b8a411eb679b4b9a7a3d2f50f6ac05 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Sun, 31 Jan 2016 16:01:05 -0500 Subject: [PATCH] Add commas to credit balance and assets. --- gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gui.py b/gui.py index 4a98e78..cb0493f 100644 --- a/gui.py +++ b/gui.py @@ -4,6 +4,7 @@ import Tkinter as tk import tkSimpleDialog, tkMessageBox import utils + class UpdateWindow(object): def __init__(self, parent, settings): self.ship_id = None @@ -93,8 +94,8 @@ class InfoFrame(tk.Frame): self.cmdr.set(data['cmdr']) self.ship.set(ship_name) self.system.set(data['location']) - self.credits.set(str(data['credits'])) - self.assets.set(str(data['assets'])) + self.credits.set('{:,}'.format(data['credits'])) + self.assets.set('{:,}'.format(data['assets'])) def _add_row(self, label_text): row = tk.Frame(self)