first three examples
This commit is contained in:
parent
f127d0989e
commit
9a069985a5
|
@ -0,0 +1,10 @@
|
|||
from tkinter import Tk
|
||||
|
||||
|
||||
def main():
|
||||
root = Tk()
|
||||
root.mainloop()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
|
@ -0,0 +1,11 @@
|
|||
from tkinter import Tk
|
||||
|
||||
|
||||
def main():
|
||||
root = Tk()
|
||||
root.title('Title')
|
||||
root.mainloop()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
|
@ -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()
|
Loading…
Reference in New Issue