Ignore:
Timestamp:
04/15/17 12:32:05 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

All data is displayed and is editable in the PIREP editor (re #307)

File:
1 edited

Legend:

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

    r620 r833  
    9494                               buffer.get_end_iter(), True)
    9595
     96    @explanation.setter
     97    def explanation(self, explanation):
     98        """Set the explanation."""
     99        self._explanation.get_buffer().set_text(explanation)
     100
    96101    @property
    97102    def hasExplanation(self):
     
    126131
    127132class FaultExplainWidget(gtk.Frame):
    128     """The widget for the failts and their explanations."""
     133    """The widget for the faults and their explanations."""
    129134    @staticmethod
    130135    def getFaultFrame(alignment):
     
    235240                          numExplanations = self._numExplanations -
    236241                          (1 if hasExplanation else 0))
     242
     243    def setExplanation(self, id, explanation):
     244        """Set the explanation for the fault with the given ID"""
     245        self._faultWidgets[id][1].explanation = explanation
    237246
    238247    def reset(self):
Note: See TracChangeset for help on using the changeset viewer.