Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: python comprehension with sum 
Python :: python cube root 
Python :: python select random subset from numpy array 
Python :: drop columnd python 
Python :: python discord how to get user variables 
Python :: mirror 2d numpy array 
Python :: new event loop asyncio 
Python :: How to convert text into audio file in python? 
Python :: how to move your cursor using python 
Python :: install django windows 
Python :: number pyramid pattern in python 
Python :: how to add a list to dataframe in python 
Python :: python class tostring 
Python :: how to use colorama 
Python :: button in flask 
Python :: random number pythn 
Python :: python remove stop words 
Python :: prime number generator python 
Python :: How to find the three largest values of an array efficiently, in Python? 
Python :: static dirs django 
Python :: identify null values 
Python :: extend stack python 
Python :: how to split string with comma in python 
Python :: python check list contains another list 
Python :: convert birth date to age pandas 
Python :: find nan values in a column pandas 
Python :: command prompt pause in python 
Python :: forbidden (csrf cookie not set.) django rest framework 
Python :: random py 
Python :: cosine interpolation 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =