From d3e5694bf6f6c73df50692f0630f740c986b00f9 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Thu, 8 Aug 2019 08:15:16 +0200 Subject: [PATCH] add example with app icon --- example_004.py | 11 +++++++++++ icon.png | Bin 0 -> 491 bytes 2 files changed, 11 insertions(+) create mode 100644 example_004.py create mode 100644 icon.png diff --git a/example_004.py b/example_004.py new file mode 100644 index 0000000..0e7a97a --- /dev/null +++ b/example_004.py @@ -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() diff --git a/icon.png b/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc8fbf7cee6330174712b9beb71fa774fa2bdb3 GIT binary patch literal 491 zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H3?#oinD`S&%?$7faeeXP#sB~RjqN-byr#rw zUF98JFne& zq?EXD?$)y{D^5?`c+n_#<>YlI>lPe5a^d#6gO~RnIAmb&>l+?l)!3d>Qtfx~Tr1F# zoCO|{#S9GG!XV7ZFl&wkP>{XE)7O>#F$V{$u)zyk;c}qRQ%@JikcwMxZ(S5@cHm(S zeDbf`kCii>ZL>od>zzIR^WW$em@zW3a0n%D~0|Us01&pQc4a}X%JL5P1|0#Rpl7i0zRPC96-czepC zSi_6c9{+B7p5yakZeW4~2u2(@by