diff --git a/pyaedt/desktop.py b/pyaedt/desktop.py index 2cbcd7ff8e9..8ef6847a92a 100644 --- a/pyaedt/desktop.py +++ b/pyaedt/desktop.py @@ -1889,7 +1889,7 @@ def add_script_to_menu( it applies to all designs. You can also specify a product, such as ``"HFSS"``. copy_to_personal_lib : bool, optional Whether to copy the script to Personal Lib or link the original script. Default is ``True``. - executable_interpreter : None, optional + executable_interpreter : str, optional Executable python path. The default is the one current interpreter. Returns diff --git a/pyaedt/misc/toolkit_manager.py b/pyaedt/misc/toolkit_manager.py index ab7db3fd31b..eb2dacfabbd 100644 --- a/pyaedt/misc/toolkit_manager.py +++ b/pyaedt/misc/toolkit_manager.py @@ -2,6 +2,9 @@ import tkinter as tk from tkinter import ttk +import PIL.Image +import PIL.ImageTk + from pyaedt import Desktop from pyaedt import is_windows from pyaedt.misc.install_extra_toolkits import available_toolkits @@ -232,10 +235,11 @@ def button_is_clicked( # Load the logo for the main window icon_path = os.path.join(os.path.dirname(__file__), "images", "large", "logo.png") -icon = tk.PhotoImage(file=icon_path) +im = PIL.Image.open(icon_path) +photo = PIL.ImageTk.PhotoImage(im) # Set the icon for the main window -root.iconphoto(True, icon) +root.iconphoto(True, photo) # Configure style for ttk buttons style = ttk.Style()