Skip to content

Commit 0994668

Browse files
committed
Use number formatting for values from EDSM calls. Fixes issue #9
1 parent efa2362 commit 0994668

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

load.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from config import config
3131
import myNotebook as nb
3232

33-
VERSION = "1.20"
33+
VERSION = "1.21"
3434
PADX = 5
3535
WIDTH = 10
3636

@@ -71,9 +71,9 @@ def fillSystemInformationFromEDSM(label, systemEntry, xEntry, yEntry, zEntry):
7171
if "name" in edsmJson and "coords" in edsmJson:
7272
clearInputFields(systemEntry, xEntry, yEntry, zEntry)
7373
systemEntry.insert(0, edsmJson["name"])
74-
xEntry.insert(0, edsmJson["coords"]["x"])
75-
yEntry.insert(0, edsmJson["coords"]["y"])
76-
zEntry.insert(0, edsmJson["coords"]["z"])
74+
xEntry.insert(0, Locale.stringFromNumber(edsmJson["coords"]["x"]))
75+
yEntry.insert(0, Locale.stringFromNumber(edsmJson["coords"]["y"]))
76+
zEntry.insert(0, Locale.stringFromNumber(edsmJson["coords"]["z"]))
7777
label["text"] = "Coordinates filled in for system {0}".format(edsmJson["name"])
7878
label.config(foreground="dark green")
7979
else:

0 commit comments

Comments
 (0)