creating an interface tkinter

Solutions on MaxInterview for creating an interface tkinter by the best coders in the world

showing results for - "creating an interface tkinter"
Beatrice
17 Jul 2019
1import tkinter as tk #tkinter is the library that we will use
2
3class main:
4  def __init__(self,master):
5    master.title('Simple Interface') #This is the title
6    master.geometry('500x500') #Our window will be a square
7    master.configure(background='white') #Color of background
8    master.resizable(False, False) #Resizable Off
9
10if __name__ == '__main__':
11  master = tk.Tk() #master is the name of our window
12  main = main(master) #main is a class
13  master.mainloop() #this is the loop