Ignore:
Timestamp:
06/04/12 11:39:30 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented the PIREP viewer tabs for the comments and the log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r220 r221  
    3333class GUI(fs.ConnectionListener):
    3434    """The main GUI class."""
    35     @staticmethod
    36     def _formatFlightLogLine(timeStr, line):
    37         """Format the given line for flight logging."""
    38         if timeStr is not None:
    39             line = timeStr + ": " + line
    40         return line + "\n"
    41        
    4235    def __init__(self, programDirectory, config):
    4336        """Construct the GUI."""
     
    473466        """Write the given message line to the log."""
    474467        gobject.idle_add(self._writeLog,
    475                          GUI._formatFlightLogLine(timeStr, line),
     468                         formatFlightLogLine(timeStr, line),
    476469                         self._logView)
    477470
     
    479472        """Update the line with the given index."""
    480473        gobject.idle_add(self._updateFlightLogLine, index,
    481                          GUI._formatFlightLogLine(timeStr, line))
     474                         formatFlightLogLine(timeStr, line))
    482475
    483476    def _updateFlightLogLine(self, index, line):
Note: See TracChangeset for help on using the changeset viewer.