Skip to content

Commit 805444e

Browse files
committed
Add icon to Tkinter and PyInstaller executable
1 parent dbf2897 commit 805444e

File tree

3 files changed

+2
-0
lines changed

3 files changed

+2
-0
lines changed

extra/icon.ico

4.19 KB
Binary file not shown.

kasatk.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ exe = EXE(pyz,
4444
upx=True,
4545
upx_exclude=[],
4646
runtime_tmpdir=None,
47+
icon='extra/icon.ico',
4748
console=False )

kasatk/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def main():
367367
root = tkinter.Tk()
368368
root.title("Kasa Devices")
369369
root.geometry("500x400")
370+
root.iconbitmap("extra/icon.ico")
370371
scroll_frame = ScrollableFrame(root)
371372
KasaDevices(scroll_frame.scrollable_frame).pack()
372373
scroll_frame.pack(fill=tkinter.BOTH, expand=True)

0 commit comments

Comments
 (0)