Ignore:
Timestamp:
05/10/17 17:41:17 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The values are checked and the OK button is updated accordingly (re #307)

File:
1 edited

Legend:

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

    r844 r846  
    5454        return (frame, comments)
    5555
    56     def __init__(self, gui, mainInstance = True):
     56    def __init__(self, gui, callbackObject = None):
    5757        """Construct the flight info tab."""
    5858        super(FlightInfo, self).__init__()
    5959        self._gui = gui
    60         self._mainInstance = mainInstance
     60        self._callbackObject = callbackObject
    6161
    6262        self._commentsAlignment = gtk.Alignment(xalign = 0.5, yalign = 0.5,
     
    184184    def delayCodesChanged(self):
    185185        """Callewd when the delay codes have changed."""
    186         if self._mainInstance:
     186        if self._callbackObject is None:
    187187            self._gui.delayCodesChanged()
     188        else:
     189            self._callbackObject.delayCodesChanged()
    188190
    189191    def _commentsChanged(self, textbuffer):
    190192        """Called when the comments have changed."""
    191         if self._mainInstance:
     193        if self._callbackObject is None:
    192194            self._gui.commentsChanged()
     195        else:
     196            self._callbackObject.commentsChanged()
    193197
    194198    def _faultExplanationsChanged(self, faultExplainWidget, fullyExplained):
    195199        """Called when the status of the fault explanations has changed."""
    196         if self._mainInstance:
     200        if self._callbackObject is None:
    197201            self._gui.faultExplanationsChanged()
     202        else:
     203            self._callbackObject.faultExplanationsChanged()
Note: See TracChangeset for help on using the changeset viewer.