Changeset 221:2126271cea84 for src/mlx/gui/gui.py
- Timestamp:
- 06/04/12 11:39:30 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r220 r221 33 33 class GUI(fs.ConnectionListener): 34 34 """The main GUI class.""" 35 @staticmethod36 def _formatFlightLogLine(timeStr, line):37 """Format the given line for flight logging."""38 if timeStr is not None:39 line = timeStr + ": " + line40 return line + "\n"41 42 35 def __init__(self, programDirectory, config): 43 36 """Construct the GUI.""" … … 473 466 """Write the given message line to the log.""" 474 467 gobject.idle_add(self._writeLog, 475 GUI._formatFlightLogLine(timeStr, line),468 formatFlightLogLine(timeStr, line), 476 469 self._logView) 477 470 … … 479 472 """Update the line with the given index.""" 480 473 gobject.idle_add(self._updateFlightLogLine, index, 481 GUI._formatFlightLogLine(timeStr, line))474 formatFlightLogLine(timeStr, line)) 482 475 483 476 def _updateFlightLogLine(self, index, line):
Note:
See TracChangeset
for help on using the changeset viewer.