Ignore:
Timestamp:
04/17/17 06:47:25 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Backed out changeset f300ebc45a7f

File:
1 edited

Legend:

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

    r833 r834  
    5454        return (frame, comments)
    5555
    56     def __init__(self, gui, mainInstance = True):
     56    def __init__(self, gui):
    5757        """Construct the flight info tab."""
    5858        super(FlightInfo, self).__init__()
    5959        self._gui = gui
    60         self._mainInstance = mainInstance
    6160
    6261        self._commentsAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    111110                                            buffer.get_end_iter(), True))
    112111
    113     @comments.setter
    114     def comments(self, comments):
    115         """Set the comments."""
    116         self._comments.get_buffer().set_text(comments)
    117 
    118112    @property
    119113    def hasComments(self):
     
    153147        self._faultExplainWidget.clearFault(id)
    154148
    155     def setExplanation(self, id, explanation):
    156         """Set the explanation of the given fault."""
    157         self._faultExplainWidget.setExplanation(id, explanation)
    158 
    159149    def enable(self, aircraftType):
    160150        """Enable the flight info tab."""
     
    178168        self._delayCodeTable.reset()
    179169
    180     def activateDelayCode(self, code):
    181         """Active the checkbox corresponding to the given code."""
    182         self._delayCodeTable.activateCode(code)
    183 
    184170    def delayCodesChanged(self):
    185171        """Callewd when the delay codes have changed."""
    186         if self._mainInstance:
    187             self._gui.delayCodesChanged()
     172        self._gui.delayCodesChanged()
    188173
    189174    def _commentsChanged(self, textbuffer):
    190175        """Called when the comments have changed."""
    191         if self._mainInstance:
    192             self._gui.commentsChanged()
     176        self._gui.commentsChanged()
    193177
    194178    def _faultExplanationsChanged(self, faultExplainWidget, fullyExplained):
    195179        """Called when the status of the fault explanations has changed."""
    196         if self._mainInstance:
    197             self._gui.faultExplanationsChanged()
     180        self._gui.faultExplanationsChanged()
Note: See TracChangeset for help on using the changeset viewer.