# ctrl+alt+n for run code

from tkinter import *

root = Tk()

def myClick() :
    myLabel = Label(root, text="Look I clicked")
    myLabel.pack()


myButton = Button(root , text="Click Me!" , command=myClick , fg="blue" ,bg="red")


myButton.pack()


root.mainloop()

733239e7de592ac105e817ad95940e855be3d190
<mask token>


def myClick():
    myLabel = Label(root, text='Look I clicked')
    myLabel.pack()


<mask token>

<mask token>


def myClick():
    myLabel = Label(root, text='Look I clicked')
    myLabel.pack()


<mask token>
myButton.pack()
root.mainloop()

<mask token>
root = Tk()


def myClick():
    myLabel = Label(root, text='Look I clicked')
    myLabel.pack()


myButton = Button(root, text='Click Me!', command=myClick, fg='blue', bg='red')
myButton.pack()
root.mainloop()

from tkinter import *
root = Tk()


def myClick():
    myLabel = Label(root, text='Look I clicked')
    myLabel.pack()


myButton = Button(root, text='Click Me!', command=myClick, fg='blue', bg='red')
myButton.pack()
root.mainloop()

# ctrl+alt+n for run code

from tkinter import *

root = Tk()

def myClick() :
    myLabel = Label(root, text="Look I clicked")
    myLabel.pack()


myButton = Button(root , text="Click Me!" , command=myClick , fg="blue" ,bg="red")


myButton.pack()


root.mainloop()
