Skip to content

Instantly share code, notes, and snippets.

@FONQRI
Created July 20, 2020 02:27
Show Gist options
  • Save FONQRI/f02c5b3d990e4e30842faed93b2a5a2e to your computer and use it in GitHub Desktop.
Save FONQRI/f02c5b3d990e4e30842faed93b2a5a2e to your computer and use it in GitHub Desktop.
from tkinter import *
root=Tk()
def buttoncallback():
print('hello')
myButton = Button(root,text = ' show ',command=buttoncallback)
myButton.config(text= ' ok go',bg='red',fg='#2E9AFE')
myButton.pack()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment