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)