from tkinter import *

def rand():
	for i in range(50):
		label = Label(root, text="it's a button")
		label.grid(row=1, column=2)

root = Tk()

butt1 = Button(root, text='PUsh', state=DISABLED) 
butt1.grid(row=1, column=1)

#=============================================================================
butt2 = Button(root, text='cmon', padx=100, pady=30, fg='black', bg='red')
butt2.grid(row=2, column=1)
#fg='font color', bg='background color' padx=lenght, pady=hieght
#=============================================================================

butt3 = Button(root, text='click', padx=100, pady=10, command=rand)
butt3.grid(row=3, column=5)
#command=function

root.mainloop()
32686c972ce23fa4027197694aa4752d8f04bc46
<mask token>


def rand():
    for i in range(50):
        label = Label(root, text="it's a button")
        label.grid(row=1, column=2)


<mask token>

<mask token>


def rand():
    for i in range(50):
        label = Label(root, text="it's a button")
        label.grid(row=1, column=2)


<mask token>
butt1.grid(row=1, column=1)
<mask token>
butt2.grid(row=2, column=1)
<mask token>
butt3.grid(row=3, column=5)
root.mainloop()

<mask token>


def rand():
    for i in range(50):
        label = Label(root, text="it's a button")
        label.grid(row=1, column=2)


root = Tk()
butt1 = Button(root, text='PUsh', state=DISABLED)
butt1.grid(row=1, column=1)
butt2 = Button(root, text='cmon', padx=100, pady=30, fg='black', bg='red')
butt2.grid(row=2, column=1)
butt3 = Button(root, text='click', padx=100, pady=10, command=rand)
butt3.grid(row=3, column=5)
root.mainloop()

from tkinter import *


def rand():
    for i in range(50):
        label = Label(root, text="it's a button")
        label.grid(row=1, column=2)


root = Tk()
butt1 = Button(root, text='PUsh', state=DISABLED)
butt1.grid(row=1, column=1)
butt2 = Button(root, text='cmon', padx=100, pady=30, fg='black', bg='red')
butt2.grid(row=2, column=1)
butt3 = Button(root, text='click', padx=100, pady=10, command=rand)
butt3.grid(row=3, column=5)
root.mainloop()

from tkinter import *

def rand():
	for i in range(50):
		label = Label(root, text="it's a button")
		label.grid(row=1, column=2)

root = Tk()

butt1 = Button(root, text='PUsh', state=DISABLED) 
butt1.grid(row=1, column=1)

#=============================================================================
butt2 = Button(root, text='cmon', padx=100, pady=30, fg='black', bg='red')
butt2.grid(row=2, column=1)
#fg='font color', bg='background color' padx=lenght, pady=hieght
#=============================================================================

butt3 = Button(root, text='click', padx=100, pady=10, command=rand)
butt3.grid(row=3, column=5)
#command=function

root.mainloop()