mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Fix json decoding
Fix minor tooltip issue
This commit is contained in:
2
Gui.py
2
Gui.py
@@ -457,7 +457,7 @@ class SpriteSelector(object):
|
|||||||
try:
|
try:
|
||||||
task.update_status("Downloading official sprites list")
|
task.update_status("Downloading official sprites list")
|
||||||
with urlopen('http://vt.alttp.run/sprites') as response:
|
with urlopen('http://vt.alttp.run/sprites') as response:
|
||||||
sprites_arr = json.load(response)
|
sprites_arr = json.loads(response.read().decode("utf-8"))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
resultmessage = "Error getting list of official sprites. Sprites not updated.\n\n%s: %s" % (type(e).__name__, e)
|
resultmessage = "Error getting list of official sprites. Sprites not updated.\n\n%s: %s" % (type(e).__name__, e)
|
||||||
successful = False
|
successful = False
|
||||||
|
@@ -109,6 +109,7 @@ class ToolTips(object):
|
|||||||
window = None
|
window = None
|
||||||
active = 0
|
active = 0
|
||||||
tag = None
|
tag = None
|
||||||
|
after_id = None
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getcontroller(cls, widget):
|
def getcontroller(cls, widget):
|
||||||
|
Reference in New Issue
Block a user