From d36b6b1bebfb79e98f288ab1ad5cb3cb50cdb0da Mon Sep 17 00:00:00 2001 From: Kevin Cathcart Date: Mon, 1 Jan 2018 11:50:35 -0500 Subject: [PATCH] Fix running on non-windows platforms Also remove incorrect comment --- GuiUtils.py | 5 ++++- Rom.py | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/GuiUtils.py b/GuiUtils.py index f987a408..78e5121f 100644 --- a/GuiUtils.py +++ b/GuiUtils.py @@ -51,7 +51,10 @@ class BackgroundTaskProgress(BackgroundTask): self.window['padx'] = 5 self.window['pady'] = 5 - self.window.attributes("-toolwindow", 1) + try: + self.window.attributes("-toolwindow", 1) + except tk.TclError: + pass self.window.wm_title(title) self.label_var = tk.StringVar() diff --git a/Rom.py b/Rom.py index ffe1b593..b42b4154 100644 --- a/Rom.py +++ b/Rom.py @@ -472,8 +472,6 @@ def patch_rom(world, rom, hashtable, beep='normal', sprite=None): else: rom.write_bytes(0x180090, [0x04, 0x47, 0x03, 0x47, 0x02, 0x47, 0x04, 0x47]) - # TODO: FIXME: need to set capcity upgrade fills (2,3,0,0) for easy, (0,0,0,0) otherwise - # set up game internal RNG seed for i in range(1024): rom.write_byte(0x178000 + i, random.randint(0, 255))