Skip to content

Commit

Permalink
Fix Linux logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Apr 29, 2024
1 parent 10f381c commit e878fb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyaedt/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions pyaedt/misc/toolkit_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit e878fb2

Please sign in to comment.