diff --git a/games/tic-tac-toe-python/ttt.py b/games/tic-tac-toe-python/ttt.py index 9c85606..f42cdcd 100644 --- a/games/tic-tac-toe-python/ttt.py +++ b/games/tic-tac-toe-python/ttt.py @@ -137,7 +137,12 @@ class GGSTTT: elif msg["Client-Command"] == "lusers": print msg gobject.idle_add(self.updateUsers, msg["DATA"]) - elif msg["Client-Command"] == "loser" or msg["Client-Command"] == "winner": + elif msg["Client-Command"] == "loser" or msg["Client-Command"] == "winner" or msg["Client-Command"] == "draw": + md = gtk.MessageDialog(None, + gtk.DIALOG_DESTROY_WITH_PARENT, gtk.MESSAGE_INFO, + gtk.BUTTONS_CLOSE, msg["DATA"]) + md.run() + md.destroy() self.s.send("Game-Command: new\n" + "Content-Type: text\n" + "Content-Length: 0\n"+