From 98362ab5084048fc50beea563a7745e09fbe9966 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Tue, 15 Oct 2019 19:38:12 +0200 Subject: [PATCH] fixed text display search output Always showed the system it was iniatially started with instead of the currently searched system. --- edsm-getnearest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edsm-getnearest.py b/edsm-getnearest.py index f82c165..ae57ec6 100755 --- a/edsm-getnearest.py +++ b/edsm-getnearest.py @@ -45,7 +45,8 @@ def outputGui(): child.grid_remove() child.destroy() try: - distances = getDistances(systemField.get(), cmdrs) + system = systemField.get() + distances = getDistances(system, cmdrs) nearestCmdr = min(distances,key=distances.get) lbl = tk.Label( frame, text='nearest CMDR: {} ({} ly from {})'.format(nearestCmdr,