From e5da0c87ede3c55e4483a44806cba4058b884790 Mon Sep 17 00:00:00 2001 From: Leon Teichroeb Date: Wed, 23 Jun 2021 11:52:06 +0200 Subject: [PATCH] This call fails on Linux. Application is Linux-compatible with this fix. --- User_Interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/User_Interface.py b/User_Interface.py index 2b98a88..4f3b1f4 100644 --- a/User_Interface.py +++ b/User_Interface.py @@ -37,7 +37,10 @@ class HelmholtzGUI(Tk): Tk.__init__(self) Tk.wm_title(self, "Helmholtz Cage Control") # set title of the window - Tk.wm_iconbitmap(self, "Helmholtz.ico") # set application icon + try: + Tk.wm_iconbitmap(self, "Helmholtz.ico") # set application icon + except TclError: + pass self.Menu = TopMenu(self) # display dropdown menu bar at the top (see TopMenu class for details)