From b166569da31e05a47ee4bda3ad009abecd1adb81 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 19 May 2015 10:09:48 +0100 Subject: [PATCH] Added versions to game --- GUI.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/GUI.py b/GUI.py index 3177c4d..411aff5 100644 --- a/GUI.py +++ b/GUI.py @@ -7,7 +7,7 @@ from assets import Textures PADDING_TITLE = 15 PADDING_BUTTON = 9 - +VERSION = {"ID":"2.1", "DATE": "13/05/15 09:31"} class Main_Window: def __init__(self, master): @@ -18,6 +18,10 @@ class Main_Window: self.title.config(text="ATTACK ON BLOCKS!",font=("Courier New", 37)) 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.config(text="Play Game") self.start_button.pack(fill=BOTH, ipadx=PADDING_BUTTON/2, ipady=PADDING_BUTTON/2, padx=PADDING_BUTTON, pady=PADDING_BUTTON)