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.bind('<Button-1>', self.close)
|
||||
|
||||
|
||||
Style().configure("Menu.TButton", font=("Lucida", 25))
|
||||
Style().configure("Quit.TButton", font=("Lucida", 15))
|
||||
|
||||
logging.info("GUI Generated.")
|
||||
logging.debug("GUI Generated.")
|
||||
|
||||
def play_game(self, event):
|
||||
logging.info("Game Started.")
|
||||
self.master.withdraw()
|
||||
exit_code = game.initialise(self.master, self.options_window.options)
|
||||
if exit_code != "QUIT": self.title["text"] = exit_messages[code]
|
||||
|
|
3
game.py
3
game.py
|
@ -79,7 +79,8 @@ def play(window):
|
|||
PLAYING_GAME = True
|
||||
target_movement_timeout_default = FPS * 0.5
|
||||
target_movement_timeout = target_movement_timeout_default
|
||||
|
||||
|
||||
logging.info("Game Started.")
|
||||
while PLAYING_GAME:
|
||||
window.fill((0,0,0))
|
||||
|
||||
|
|
Reference in a new issue