Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #set #gui #position #tkinter #python
ADD COMMENT
Topic
Name
3+9 =