From 9a069985a59f2e6137db7ee165de71b1080d018d Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Wed, 7 Aug 2019 08:07:22 +0200 Subject: [PATCH] first three examples --- example_001.py | 10 ++++++++++ example_002.py | 11 +++++++++++ example_003.py | 15 +++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 example_001.py create mode 100644 example_002.py create mode 100644 example_003.py diff --git a/example_001.py b/example_001.py new file mode 100644 index 0000000..fd44b4e --- /dev/null +++ b/example_001.py @@ -0,0 +1,10 @@ +from tkinter import Tk + + +def main(): + root = Tk() + root.mainloop() + + +if __name__ == '__main__': + main() diff --git a/example_002.py b/example_002.py new file mode 100644 index 0000000..050330d --- /dev/null +++ b/example_002.py @@ -0,0 +1,11 @@ +from tkinter import Tk + + +def main(): + root = Tk() + root.title('Title') + root.mainloop() + + +if __name__ == '__main__': + main() diff --git a/example_003.py b/example_003.py new file mode 100644 index 0000000..2fb75ed --- /dev/null +++ b/example_003.py @@ -0,0 +1,15 @@ +from tkinter import Tk + + +def main(): + root = Tk() + root.minsize(100, 50) + root.maxsize(200, 100) + root.geometry('175x175+25+25') + # root.attributes('-zoomed', True) # maximze size + # root.attributes('-fullscreen', True) # full screen + root.mainloop() + + +if __name__ == '__main__': + main()