Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

creating an interface tkinter

import tkinter as tk #tkinter is the library that we will use

class main:
  def __init__(self,master):
    master.title('Simple Interface') #This is the title
    master.geometry('500x500') #Our window will be a square
    master.configure(background='white') #Color of background
    master.resizable(False, False) #Resizable Off

if __name__ == '__main__':
  master = tk.Tk() #master is the name of our window
  main = main(master) #main is a class
  master.mainloop() #this is the loop
Comment

PREVIOUS NEXT
Code Example
Python :: input stdout python 
Python :: print key of dictionary python 
Python :: python read yaml 
Python :: python xor two bytes 
Python :: how to enable matplotlib in notebook 
Python :: check column type pandas 
Python :: function as parameter tpye hinting python 
Python :: how to split a list to 1000 items python 
Python :: python plot cut off when saving figure 
Python :: set axis ticks matplotlib 
Python :: close selenium webdriver python 
Python :: get output of ps aux grep python 
Python :: python convert 1 to 01 
Python :: how to cnovert a decimal to fraction python 
Python :: check if regex matches python 
Python :: regex email python 
Python :: pandas dataframe hist title 
Python :: strftime python 
Python :: import tknter 
Python :: print every element in list python outside string 
Python :: django check if url safe 
Python :: change title size matplotlib 
Python :: plotly title font size 
Python :: numpy count the number of 1s in array 
Python :: how to print me me big boy python 
Python :: python index where true 
Python :: pyplot legend outside figure 
Python :: how to run a .exe through python 
Python :: how to show process bar in terminal python 
Python :: How do I start a DataFrame index from 1? 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =