Ignore:
Timestamp:
01/16/14 16:30:13 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added some debug printouts (re #222)

File:
1 edited

Legend:

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

    r513 r551  
    22352235    def activate(self):
    22362236        """Activate the page."""
     2237        print "TakeoffPage.activate"
     2238
    22372239        self._runway.set_text("")
    22382240        self._runway.set_sensitive(True)
     
    22682270    def allowForward(self):
    22692271        """Allow going to the next page."""
     2272        print "TakeoffPage.allowForward"
    22702273        self._forwardAllowed = True
    22712274        self._updateForwardButton()
     
    22732276    def reset(self):
    22742277        """Reset the page if the wizard is reset."""
     2278        print "TakeoffPage.reset"
     2279
    22752280        super(TakeoffPage, self).reset()
    22762281        self._v1.reset()
     
    22882293    def _updateForwardButton(self):
    22892294        """Update the sensitivity of the forward button based on some conditions."""
     2295
    22902296        sensitive = self._forwardAllowed and \
    22912297                    self._runway.get_text()!="" and \
     
    22982304                    (self._derateType==acft.DERATE_NONE or
    22992305                     self.derate is not None)
     2306
     2307        print "TakeoffPage._updateForwardButton: forwardAllowed:", self._forwardAllowed, ", sensitive:", sensitive
     2308
    23002309        self._button.set_sensitive(sensitive)
    23012310
    23022311    def _valueChanged(self, widget, arg = None):
    23032312        """Called when the value of some widget has changed."""
     2313        print "TakeoffPage._valueChanged"
     2314
    23042315        self._updateForwardButton()
    23052316
     
    23072318        """Called when the value of some entry widget has changed and the value
    23082319        should be converted to uppercase."""
     2320        print "TakeoffPage._upperChanged"
    23092321        entry.set_text(entry.get_text().upper())
    23102322        self._valueChanged(entry, arg)
     
    23122324    def _derateChanged(self, entry):
    23132325        """Called when the value of the derate is changed."""
     2326        print "TakeoffPage._derateChanged"
    23142327        self._updateForwardButton()
    23152328
Note: See TracChangeset for help on using the changeset viewer.