Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `def __init__(self,master):`
- `frame = Frame(master)`
- `frame.pack() `
- ` helv36 = tkFont.Font(family="Helvetica",size=36,weight="bold")`
- `self.printButton = Button(frame,font=helv36, text ="Print
- Message",command = self.printMessage,compound ='top')
- self.printButton.pack(side =LEFT)`
- ` self.quitButton = Button(frame, text ="quit", command = frame.quit)`
- `self.quitButton.pack(side=LEFT)`
- `def printMessage(self):`
- `print("It worked!")`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement