I am a little confused, hope this will help ...
[php]# create a row of colorful buttons and assign some action to each
from Tkinter import *
def action1():
label1.config(text='You pressed button1')
def action2():
label1.config(text='You pressed button2')
def rng():
label1.config(text='Now you could be running an RNG!')
form1 = Tk()
form1.title('Press a button')
# assign desired function object to command of each button
button1 = Button(form1, text='button1', fg='blue', command=action1)
button2 = Button(form1, text='button2', fg='brown', command=action2)
rng_button = Button(form1, text='run RNG', bg='green', command=rng)
quit_button = Button(form1, text='<< quit >>', fg='red', command=form1.destroy)
label1 = Label(form1, fg='red', bg='yellow')
# use a grid to place widgets on the form
button1.grid(row=0, column=0)
button2.grid(row=0, column=1)
rng_button.grid(row=0, column=2)
quit_button.grid(row=0, column=3)
label1.grid(row=1, column=0, columnspan=4)
form1.mainloop()
[/php]