add example with app icon

This commit is contained in:
Joachim Lusiardi 2019-08-08 08:15:16 +02:00
parent 9a069985a5
commit d3e5694bf6
2 changed files with 11 additions and 0 deletions

11
example_004.py Normal file
View File

@ -0,0 +1,11 @@
# example_004.py
from tkinter import Tk, Image
def main():
root = Tk()
icon = Image('photo', file='icon.png')
root.wm_iconphoto(True, icon)
root.mainloop()
if __name__ == '__main__':
main()

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B