Added win/lose msg
This commit is contained in:
parent
f07bceb019
commit
2377df94be
1 changed files with 3 additions and 0 deletions
|
@ -127,11 +127,13 @@ class GGSTTT:
|
||||||
self.wTree.get_widget("x2y0").get_child().modify_font(pango.FontDescription("sans 48"))
|
self.wTree.get_widget("x2y0").get_child().modify_font(pango.FontDescription("sans 48"))
|
||||||
self.wTree.get_widget("x2y1").get_child().modify_font(pango.FontDescription("sans 48"))
|
self.wTree.get_widget("x2y1").get_child().modify_font(pango.FontDescription("sans 48"))
|
||||||
self.wTree.get_widget("x2y2").get_child().modify_font(pango.FontDescription("sans 48"))
|
self.wTree.get_widget("x2y2").get_child().modify_font(pango.FontDescription("sans 48"))
|
||||||
|
self.setStatus("")
|
||||||
elif msg["Client-Command"] == "defined":
|
elif msg["Client-Command"] == "defined":
|
||||||
self.s.send("Game-Command: hi\n" +
|
self.s.send("Game-Command: hi\n" +
|
||||||
"Content-Type: text\n" +
|
"Content-Type: text\n" +
|
||||||
"Content-Length: 0\n"+
|
"Content-Length: 0\n"+
|
||||||
"\n")
|
"\n")
|
||||||
|
self.setStatus("")
|
||||||
elif msg["Client-Command"] == "lusers":
|
elif msg["Client-Command"] == "lusers":
|
||||||
print msg
|
print msg
|
||||||
gobject.idle_add(self.updateUsers, msg["DATA"])
|
gobject.idle_add(self.updateUsers, msg["DATA"])
|
||||||
|
@ -140,6 +142,7 @@ class GGSTTT:
|
||||||
"Content-Type: text\n" +
|
"Content-Type: text\n" +
|
||||||
"Content-Length: 0\n"+
|
"Content-Length: 0\n"+
|
||||||
"\n")
|
"\n")
|
||||||
|
self.setStatus(msg["DATA"])
|
||||||
|
|
||||||
|
|
||||||
def connect(self, host,port):
|
def connect(self, host,port):
|
||||||
|
|
Reference in a new issue