first three examples

This commit is contained in:
Joachim Lusiardi 2019-08-07 08:07:22 +02:00
parent f127d0989e
commit 9a069985a5
3 changed files with 36 additions and 0 deletions

10
example_001.py Normal file
View File

@ -0,0 +1,10 @@
from tkinter import Tk
def main():
root = Tk()
root.mainloop()
if __name__ == '__main__':
main()

11
example_002.py Normal file
View File

@ -0,0 +1,11 @@
from tkinter import Tk
def main():
root = Tk()
root.title('Title')
root.mainloop()
if __name__ == '__main__':
main()

15
example_003.py Normal file
View File

@ -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()