1
Fork 0

Added versions to game

This commit is contained in:
Jake Howard 2015-05-19 10:09:48 +01:00
parent f9d90cd6ad
commit b166569da3
1 changed files with 5 additions and 1 deletions

6
GUI.py
View File

@ -7,7 +7,7 @@ from assets import Textures
PADDING_TITLE = 15 PADDING_TITLE = 15
PADDING_BUTTON = 9 PADDING_BUTTON = 9
VERSION = {"ID":"2.1", "DATE": "13/05/15 09:31"}
class Main_Window: class Main_Window:
def __init__(self, master): def __init__(self, master):
@ -18,6 +18,10 @@ class Main_Window:
self.title.config(text="ATTACK ON BLOCKS!",font=("Courier New", 37)) self.title.config(text="ATTACK ON BLOCKS!",font=("Courier New", 37))
self.title.pack(side="top", padx=PADDING_BUTTON, pady=PADDING_TITLE/2) self.title.pack(side="top", padx=PADDING_BUTTON, pady=PADDING_TITLE/2)
self.version_info = Label(self.master)
self.version_info.config(text="Version {ID} tagged {DATE}".format(**VERSION), font=("Courier New", 15))
self.version_info.pack(side="top", padx=PADDING_BUTTON, pady=PADDING_BUTTON/2)
self.start_button = Button(self.master, style="Menu.TButton") self.start_button = Button(self.master, style="Menu.TButton")
self.start_button.config(text="Play Game") self.start_button.config(text="Play Game")
self.start_button.pack(fill=BOTH, ipadx=PADDING_BUTTON/2, ipady=PADDING_BUTTON/2, padx=PADDING_BUTTON, pady=PADDING_BUTTON) self.start_button.pack(fill=BOTH, ipadx=PADDING_BUTTON/2, ipady=PADDING_BUTTON/2, padx=PADDING_BUTTON, pady=PADDING_BUTTON)