Advertisement
Guest User

Interface for a game in tkinter

a guest
Aug 22nd, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. from tkinter import *
  2.  
  3.  
  4. root = Tk()
  5.  
  6. topFrame = Frame(root)
  7. topFrame.pack()
  8. bottomFrame = Frame(root)
  9. bottomFrame.pack(side=BOTTOM)
  10.  
  11. showHand = Button(topFrame, text="Show hand", fg="green")
  12. showLocalTable = Button(topFrame, text="Show your table", fg="green")
  13. countHand = Button(topFrame, text="Count hand", fg="blue")
  14. quitGame = Button(topFrame, text="Quit Game", bg="red")
  15. startGame = Button(topFrame, text="Start Game", bg="green")
  16.  
  17. showHand.pack(side=TOP)
  18. showLocalTable.pack(side=TOP)
  19. countHand.pack(side=TOP)
  20. quitGame.pack(side=RIGHT)
  21. startGame.pack(side=RIGHT)
  22.  
  23. root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement