Skip to content

Commit 13d3d02

Browse files
committed
python: Add windows app icon
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent fd0b85c commit 13d3d02

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

python/inputmodule/gui/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ def run_gui(devices):
5252
root = tk.Tk()
5353
root.title("LED Matrix Control")
5454

55+
ico = "framework_startmenuicon.ico"
56+
res_path = resource_path()
57+
if os.name == 'nt':
58+
root.iconbitmap(f"{res_path}/res/{ico}")
59+
5560
tabControl = ttk.Notebook(root)
5661
tab1 = ttk.Frame(tabControl)
5762
tab_games = ttk.Frame(tabControl)

res/framework_startmenuicon.ico

87.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)