how to set gui position tkinter python

Solutions on MaxInterview for how to set gui position tkinter python by the best coders in the world

showing results for - "how to set gui position tkinter python"
Imen
03 Nov 2020
1import tkinter as tk #We'll use tkinter
2
3class main: #This will be the main class
4  def __init__(self,master):
5    master.title('Simple Interface') #This is the title of the window
6    master.geometry('1200x700+0+0') #You can utilize +300+300 for example
7    								#So now you can change the position of
8      								#Your window
9
10if __name__=='__main__':
11  master = tk.Tk() #Master is the name of our window
12  main = main(master)
13  master.mainloop #We're creating the loop