#!/usr/bin/env python
from functools import partial
import Tkinter

root = Tkinter.Tk()

def say_hi():
    print ('hello world!\n')

def say_bye():
    print ('Goodbye!\n')
   
MyButton = partial(Tkinter.Button, root, fg='white', bg='blue')
b1 = MyButton(text='Say hi!', bg = 'blue', command = say_hi)
b2 = MyButton(text='Say bye!', bg = 'blue', command = say_bye)
qb = MyButton(text='QUIT', bg='red', command=root.quit)
b1.pack()
b2.pack()

qb.pack(fill=Tkinter.X, expand=True)
root.title('PFAs!')
root.mainloop()