Add commas to credit balance and assets.
This commit is contained in:
parent
603f1ef1fe
commit
7da653f4c4
5
gui.py
5
gui.py
|
@ -4,6 +4,7 @@ import Tkinter as tk
|
||||||
import tkSimpleDialog, tkMessageBox
|
import tkSimpleDialog, tkMessageBox
|
||||||
import utils
|
import utils
|
||||||
|
|
||||||
|
|
||||||
class UpdateWindow(object):
|
class UpdateWindow(object):
|
||||||
def __init__(self, parent, settings):
|
def __init__(self, parent, settings):
|
||||||
self.ship_id = None
|
self.ship_id = None
|
||||||
|
@ -93,8 +94,8 @@ class InfoFrame(tk.Frame):
|
||||||
self.cmdr.set(data['cmdr'])
|
self.cmdr.set(data['cmdr'])
|
||||||
self.ship.set(ship_name)
|
self.ship.set(ship_name)
|
||||||
self.system.set(data['location'])
|
self.system.set(data['location'])
|
||||||
self.credits.set(str(data['credits']))
|
self.credits.set('{:,}'.format(data['credits']))
|
||||||
self.assets.set(str(data['assets']))
|
self.assets.set('{:,}'.format(data['assets']))
|
||||||
|
|
||||||
def _add_row(self, label_text):
|
def _add_row(self, label_text):
|
||||||
row = tk.Frame(self)
|
row = tk.Frame(self)
|
||||||
|
|
Reference in New Issue
Block a user