Changeset 552:6e3f89c6c8b7 for src/mlx/gui
- Timestamp:
- 01/16/14 16:30:13 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r513 r551 2235 2235 def activate(self): 2236 2236 """Activate the page.""" 2237 print "TakeoffPage.activate" 2238 2237 2239 self._runway.set_text("") 2238 2240 self._runway.set_sensitive(True) … … 2268 2270 def allowForward(self): 2269 2271 """Allow going to the next page.""" 2272 print "TakeoffPage.allowForward" 2270 2273 self._forwardAllowed = True 2271 2274 self._updateForwardButton() … … 2273 2276 def reset(self): 2274 2277 """Reset the page if the wizard is reset.""" 2278 print "TakeoffPage.reset" 2279 2275 2280 super(TakeoffPage, self).reset() 2276 2281 self._v1.reset() … … 2288 2293 def _updateForwardButton(self): 2289 2294 """Update the sensitivity of the forward button based on some conditions.""" 2295 2290 2296 sensitive = self._forwardAllowed and \ 2291 2297 self._runway.get_text()!="" and \ … … 2298 2304 (self._derateType==acft.DERATE_NONE or 2299 2305 self.derate is not None) 2306 2307 print "TakeoffPage._updateForwardButton: forwardAllowed:", self._forwardAllowed, ", sensitive:", sensitive 2308 2300 2309 self._button.set_sensitive(sensitive) 2301 2310 2302 2311 def _valueChanged(self, widget, arg = None): 2303 2312 """Called when the value of some widget has changed.""" 2313 print "TakeoffPage._valueChanged" 2314 2304 2315 self._updateForwardButton() 2305 2316 … … 2307 2318 """Called when the value of some entry widget has changed and the value 2308 2319 should be converted to uppercase.""" 2320 print "TakeoffPage._upperChanged" 2309 2321 entry.set_text(entry.get_text().upper()) 2310 2322 self._valueChanged(entry, arg) … … 2312 2324 def _derateChanged(self, entry): 2313 2325 """Called when the value of the derate is changed.""" 2326 print "TakeoffPage._derateChanged" 2314 2327 self._updateForwardButton() 2315 2328
Note:
See TracChangeset
for help on using the changeset viewer.