Answers for "how to add buttons in cmd python"

4

python button tkinter

from tkinter import *

wow = Tk()

def ree(hi):
  print(hi)
  
w = Button ( master=wow, command=ree('hi'), text="hi" )

Output:
  Tkinter:
    ______
   [  hi  ] <--- Button
    ------
  
  Shell:
    hi <--- on button pressed
Posted by: Guest on March-20-2020

Code answers related to "how to add buttons in cmd python"

Python Answers by Framework

Browse Popular Code Answers by Language