Answers for "tkinter window position"

5

python gui size

root.geometry('69x420')
Posted by: Guest on March-26-2020
1

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
Posted by: Guest on July-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language