Changeset 203:bc3c9d58a921 for src/mlx/gui
- Timestamp:
- 05/28/12 05:07:31 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r202 r203 26 26 import threading 27 27 import sys 28 import datetime 28 29 29 30 #------------------------------------------------------------------------------ … … 63 64 self._stdioLock = threading.Lock() 64 65 self._stdioText = "" 66 self._stdioStartingLine = True 65 67 66 68 self._sendPIREPCallback = None … … 715 717 text = lines[-1] 716 718 lines = lines[:-1] 719 720 now = datetime.datetime.now() 721 timeStr = "%02d:%02d:%02d: " % (now.hour, now.minute, now.second) 717 722 718 723 for line in lines: 719 724 #print >> sys.__stdout__, line 725 if self._stdioStartingLine: 726 self._writeLog(timeStr, self._debugLogView) 720 727 self._writeLog(line + "\n", self._debugLogView) 728 self._stdioStartingLine = True 721 729 722 730 if text: 723 731 #print >> sys.__stdout__, text, 732 if self._stdioStartingLine: 733 self._writeLog(timeStr, self._debugLogView) 724 734 self._writeLog(text, self._debugLogView) 735 self._stdioStartingLine = False 725 736 726 737 def connectSimulator(self, aircraftType):
Note:
See TracChangeset
for help on using the changeset viewer.