From aafc419124abd81abe3e463642976d8d96e643ce Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 12 Oct 2020 14:43:53 +0100 Subject: [PATCH] EDMarketConnector: Initialise self.updater with type, but None value This allows the type to be known, but leaves the proper setting of the value until later (after UI creation). --- EDMarketConnector.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EDMarketConnector.py b/EDMarketConnector.py index 18932c62..1499ef54 100755 --- a/EDMarketConnector.py +++ b/EDMarketConnector.py @@ -361,6 +361,10 @@ class AppWindow(object): for child in frame.winfo_children(): child.grid_configure(padx=5, pady=(platform != 'win32' or isinstance(child, tk.Frame)) and 2 or 0) + # The type needs defining for adding the menu entry, but won't be + # properly set until later + self.updater: update.Updater = None + self.menubar = tk.Menu() if platform == 'darwin': # Can't handle (de)iconify if topmost is set, so suppress iconify button