moved logging to correct place
This commit is contained in:
parent
b24e9e9c69
commit
e68f820765
2 changed files with 3 additions and 4 deletions
4
GUI.py
4
GUI.py
|
@ -32,14 +32,12 @@ class Main_Window:
|
||||||
self.exit_button.pack(ipadx=PADDING_BUTTON/3, ipady=PADDING_BUTTON, padx=PADDING_BUTTON, pady=PADDING_BUTTON)
|
self.exit_button.pack(ipadx=PADDING_BUTTON/3, ipady=PADDING_BUTTON, padx=PADDING_BUTTON, pady=PADDING_BUTTON)
|
||||||
self.exit_button.bind('<Button-1>', self.close)
|
self.exit_button.bind('<Button-1>', self.close)
|
||||||
|
|
||||||
|
|
||||||
Style().configure("Menu.TButton", font=("Lucida", 25))
|
Style().configure("Menu.TButton", font=("Lucida", 25))
|
||||||
Style().configure("Quit.TButton", font=("Lucida", 15))
|
Style().configure("Quit.TButton", font=("Lucida", 15))
|
||||||
|
|
||||||
logging.info("GUI Generated.")
|
logging.debug("GUI Generated.")
|
||||||
|
|
||||||
def play_game(self, event):
|
def play_game(self, event):
|
||||||
logging.info("Game Started.")
|
|
||||||
self.master.withdraw()
|
self.master.withdraw()
|
||||||
exit_code = game.initialise(self.master, self.options_window.options)
|
exit_code = game.initialise(self.master, self.options_window.options)
|
||||||
if exit_code != "QUIT": self.title["text"] = exit_messages[code]
|
if exit_code != "QUIT": self.title["text"] = exit_messages[code]
|
||||||
|
|
1
game.py
1
game.py
|
@ -80,6 +80,7 @@ def play(window):
|
||||||
target_movement_timeout_default = FPS * 0.5
|
target_movement_timeout_default = FPS * 0.5
|
||||||
target_movement_timeout = target_movement_timeout_default
|
target_movement_timeout = target_movement_timeout_default
|
||||||
|
|
||||||
|
logging.info("Game Started.")
|
||||||
while PLAYING_GAME:
|
while PLAYING_GAME:
|
||||||
window.fill((0,0,0))
|
window.fill((0,0,0))
|
||||||
|
|
||||||
|
|
Reference in a new issue