Changeset 825:7d3e38a81acc for src
- Timestamp:
- 09/25/16 07:55:14 (8 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flightlist.py
r824 r825 309 309 def _reflyClicked(self, button): 310 310 """Called when the Refly button is clicked.""" 311 gui = self._wizard.gui 312 gui.beginBusy(xstr("pendflt_refly_busy")) 313 self.set_sensitive(False) 314 315 flightIDs = [self._flights[i].id 316 for i in self._flightList.selectedIndexes] 317 gui.webHandler.reflyFlights(self._reflyResultCallback, flightIDs) 311 dialog = gtk.MessageDialog(parent = self._window, 312 type = MESSAGETYPE_QUESTION, 313 message_format = xstr("pendflt_refly_question")) 314 315 dialog.add_button(xstr("button_no"), RESPONSETYPE_NO) 316 dialog.add_button(xstr("button_yes"), RESPONSETYPE_YES) 317 318 dialog.set_title(WINDOW_TITLE_BASE) 319 result = dialog.run() 320 dialog.hide() 321 322 if result==RESPONSETYPE_YES: 323 gui = self._wizard.gui 324 gui.beginBusy(xstr("pendflt_refly_busy")) 325 self.set_sensitive(False) 326 327 flightIDs = [self._flights[i].id 328 for i in self._flightList.selectedIndexes] 329 gui.webHandler.reflyFlights(self._reflyResultCallback, flightIDs) 318 330 319 331 def _reflyResultCallback(self, returned, result):
Note:
See TracChangeset
for help on using the changeset viewer.