how to set gui position tkinter python

import tkinter as tk #We'll use tkinter

class main: #This will be the main class
  def __init__(self,master):
    master.title('Simple Interface') #This is the title of the window
    master.geometry('1200x700+0+0') #You can utilize +300+300 for example
    								#So now you can change the position of
      								#Your window

if __name__=='__main__':
  master = tk.Tk() #Master is the name of our window
  main = main(master)
  master.mainloop #We're creating the loop

Here is what the above code is Doing:
1. We’re creating a class called main
2. We’re creating a function called __init__
3. We’re creating a variable called master
4. We’re creating a variable called main
5. We’re creating a loop

Now let’s break down the __init__ function:
1. We’re creating a title for our window
2. We’re creating a geometry for our window
3. We’re creating a master variable
4. We’re creating a main variable
5. We’re creating a loop

The title function is pretty self explanatory. It’s just creating a title for our window. The geometry function is creating a size for our window. The master variable is our window. The main variable is our class. The loop is what’s going to keep our window open.

Now let’s break down the title function:
1. We’re creating a title for our window
2. We’re creating a geometry for our window
3. We’re creating a master variable
4. We’re creating a main variable
5. We’re creating a loop

The title function is pretty self explanatory. It’s just creating a title for our window. The geometry function is creating a size for our window. The master variable is our window. The main variable is our class. The loop is what’s going to keep our window open.