Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. `def __init__(self,master):`
  2. `frame = Frame(master)`
  3. `frame.pack() `
  4.  
  5. ` helv36 = tkFont.Font(family="Helvetica",size=36,weight="bold")`
  6.  
  7.  
  8. `self.printButton = Button(frame,font=helv36, text ="Print
  9. Message",command = self.printMessage,compound ='top')
  10. self.printButton.pack(side =LEFT)`
  11.  
  12. ` self.quitButton = Button(frame, text ="quit", command = frame.quit)`
  13. `self.quitButton.pack(side=LEFT)`
  14.  
  15.  
  16. `def printMessage(self):`
  17. `print("It worked!")`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement