Mercurial > libervia-backend
comparison frontends/src/wix/chat.py @ 1172:e15d8a01cf6a
frontends: use of new "info" type in newMessage
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Sep 2014 19:29:30 +0200 |
parents | 75025461141f |
children | 802b7e6bf098 |
comparison
equal
deleted
inserted
replaced
1171:0abce7f17782 | 1172:e15d8a01cf6a |
---|---|
236 self.chatWindow.SetDefaultStyle(wx.TextAttr("BLACK", font=_font_italic)) | 236 self.chatWindow.SetDefaultStyle(wx.TextAttr("BLACK", font=_font_italic)) |
237 self.chatWindow.AppendText("%s\n" % msg) | 237 self.chatWindow.AppendText("%s\n" % msg) |
238 if not mymess: | 238 if not mymess: |
239 self.__blink() | 239 self.__blink() |
240 | 240 |
241 def printInfo(self, msg, type_='normal'): | 241 def printInfo(self, msg, type_='normal', timestamp=""): |
242 """Print general info | 242 """Print general info |
243 @param msg: message to print | 243 @param msg: message to print |
244 @type_: one of: | 244 @type_: one of: |
245 normal: general info like "toto has joined the room" | 245 normal: general info like "toto has joined the room" |
246 me: "/me" information like "/me clenches his fist" ==> "toto clenches his fist" | 246 me: "/me" information like "/me clenches his fist" ==> "toto clenches his fist" |