From: <bel...@us...> - 2003-02-25 23:43:20
|
Update of /cvsroot/btplusplus/BT++/src/TabLog In directory sc8-pr-cvs1:/tmp/cvs-serv4449/src/TabLog Modified Files: LogWindow.py Log Message: WebServer & Completed abstraction of LoaderManager Index: LogWindow.py =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/TabLog/LogWindow.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** LogWindow.py 22 Feb 2003 15:53:28 -0000 1.2 --- LogWindow.py 25 Feb 2003 23:43:15 -0000 1.3 *************** *** 1,3 **** --- 1,4 ---- from wxPython.wx import * + from BTConstants import * class LogWindow(wxTextCtrl): *************** *** 15,21 **** _UsedWindow = None ! def Log(text, color = [0,0,0], lbreak = true, window = None): global _UsedWindow if window != None: _UsedWindow = window --- 16,28 ---- _UsedWindow = None ! def Log(text, color = [0,0,0], lbreak = true, window = None, loglevel = LOG_INFO): global _UsedWindow + if loglevel == LOG_TRIVIAL: + return + + if (loglevel > LOG_INFO) and (color == [0,0,0]): + color = [255,0,0] + if window != None: _UsedWindow = window *************** *** 23,24 **** --- 30,34 ---- if _UsedWindow: _UsedWindow.Log(text, color, lbreak) + + if loglevel == LOG_CRITICAL: + wxMessageBox(text) |