Changeset 844:580e2368c86e for src/mlx


Ignore:
Timestamp:
04/17/17 07:11:58 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The main instance of the flight info widget can be distinguished

File:
1 edited

Legend:

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

    r843 r844  
    5454        return (frame, comments)
    5555
    56     def __init__(self, gui):
     56    def __init__(self, gui, mainInstance = True):
    5757        """Construct the flight info tab."""
    5858        super(FlightInfo, self).__init__()
    5959        self._gui = gui
     60        self._mainInstance = mainInstance
    6061
    6162        self._commentsAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    183184    def delayCodesChanged(self):
    184185        """Callewd when the delay codes have changed."""
    185         self._gui.delayCodesChanged()
     186        if self._mainInstance:
     187            self._gui.delayCodesChanged()
    186188
    187189    def _commentsChanged(self, textbuffer):
    188190        """Called when the comments have changed."""
    189         self._gui.commentsChanged()
     191        if self._mainInstance:
     192            self._gui.commentsChanged()
    190193
    191194    def _faultExplanationsChanged(self, faultExplainWidget, fullyExplained):
    192195        """Called when the status of the fault explanations has changed."""
    193         self._gui.faultExplanationsChanged()
     196        if self._mainInstance:
     197            self._gui.faultExplanationsChanged()
Note: See TracChangeset for help on using the changeset viewer.