Skip to content

Commit

Permalink
python: Add windows app icon
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <dhs@frame.work>
  • Loading branch information
JohnAZoidberg committed Nov 25, 2024
1 parent fd0b85c commit 13d3d02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/inputmodule/gui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ def run_gui(devices):
root = tk.Tk()
root.title("LED Matrix Control")

ico = "framework_startmenuicon.ico"
res_path = resource_path()
if os.name == 'nt':
root.iconbitmap(f"{res_path}/res/{ico}")

tabControl = ttk.Notebook(root)
tab1 = ttk.Frame(tabControl)
tab_games = ttk.Frame(tabControl)
Expand Down
Binary file added res/framework_startmenuicon.ico
Binary file not shown.

0 comments on commit 13d3d02

Please sign in to comment.