Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to code a clickable button in python

from tkinter import *
master = Tk()
def close_window():
    exit()
button = Button(master, text = 'Click me', command = close_window)
button.pack()
mainloop()
Comment

PREVIOUS NEXT
Code Example
Python :: iterate over rows dataframe 
Python :: python find the factors of a number 
Python :: pytorch open image 
Python :: chech box in tkinter 
Python :: how to add input box in tkinter 
Python :: pandas df remove index 
Python :: pymysql check if table exists 
Python :: run flask application in development mode stack overflow 
Python :: how to play a mp3 file in python 
Python :: how to check suffix in python 
Python :: python merge strings in columns 
Python :: convert int to byte python 
Python :: creating an interface tkinter 
Python :: python paramiko check ssh connection 
Python :: sort list of dictionaries by key python 
Python :: .get python 
Python :: convert all values in array into float 
Python :: how to check if a network port is open using python 
Python :: pandas show all dataframe 
Python :: python - subset specific columns name in a dataframe 
Python :: python bisection method 
Python :: python get keypressed value 
Python :: DATA={ "name":"keerthanaa", "age":16, "gender":"female"} print(DATA.popitem()) 
Python :: make a message appear after specified Time python 
Python :: how to add multiple dfs to excel sheet 
Python :: pandas show complete string 
Python :: python dict exclude keys 
Python :: python blueprint 
Python :: python is not writing whole line 
Python :: find links in web page web scraping 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =