Changeset 105:d1c3dd71da77 for src/mlx/gui/flight.py
- Timestamp:
- 04/22/12 14:21:23 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/flight.py
r102 r105 289 289 self._wizard.nextPage() 290 290 else: 291 dialog = gtk.MessageDialog(type = MESSAGETYPE_ERROR, 291 dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow, 292 type = MESSAGETYPE_ERROR, 292 293 buttons = BUTTONSTYPE_OK, 293 294 message_format = 294 295 "Invalid pilot's ID or password.") 296 dialog.set_title(WINDOW_TITLE_BASE) 295 297 dialog.format_secondary_markup("Check the ID and try to reenter" 296 298 " the password.") … … 298 300 dialog.hide() 299 301 else: 300 dialog = gtk.MessageDialog(type = MESSAGETYPE_ERROR, 302 dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow, 303 type = MESSAGETYPE_ERROR, 301 304 buttons = BUTTONSTYPE_OK, 302 305 message_format = 303 306 "Failed to connect to the MAVA website.") 307 dialog.set_title(WINDOW_TITLE_BASE) 304 308 dialog.format_secondary_markup("Try again in a few minutes.") 305 309 dialog.run() … … 516 520 self._wizard.nextPage() 517 521 else: 518 dialog = gtk.MessageDialog(type = MESSAGETYPE_ERROR, 522 dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow, 523 type = MESSAGETYPE_ERROR, 519 524 buttons = BUTTONSTYPE_OK, 520 525 message_format = "Gate conflict detected again") 526 dialog.set_title(WINDOW_TITLE_BASE) 521 527 dialog.format_secondary_markup("Try to select a different gate.") 522 528 dialog.run() … … 1892 1898 type = MESSAGETYPE_INFO 1893 1899 messageFormat = "The PIREP was sent successfully." 1894 secondaryMarkup = "Await the thorough scrutiny from ourPIREP correctors! :)"1900 secondaryMarkup = "Await the thorough scrutiny by our fearless PIREP correctors! :)" 1895 1901 elif result.alreadyFlown: 1896 1902 messageFormat = "The PIREP for this flight has already been sent!" … … 1908 1914 "see the debug log for more information." 1909 1915 1910 dialog = gtk.MessageDialog(type = type, buttons = BUTTONSTYPE_OK, 1916 dialog = gtk.MessageDialog(parent = self._wizard.gui.mainWindow, 1917 type = type, buttons = BUTTONSTYPE_OK, 1911 1918 message_format = messageFormat) 1919 dialog.set_title(WINDOW_TITLE_BASE) 1912 1920 if secondaryMarkup is not None: 1913 1921 dialog.format_secondary_markup(secondaryMarkup) … … 2163 2171 self._fleet = None 2164 2172 2165 dialog = gtk.MessageDialog(type = MESSAGETYPE_ERROR, 2173 dialog = gtk.MessageDialog(parent = self.gui.mainWindow, 2174 type = MESSAGETYPE_ERROR, 2166 2175 buttons = BUTTONSTYPE_OK, 2167 2176 message_format = 2168 2177 "Failed to retrieve the information on " 2169 2178 "the fleet.") 2179 dialog.set_title(WINDOW_TITLE_BASE) 2170 2180 dialog.run() 2171 2181 dialog.hide() … … 2192 2202 success = None 2193 2203 2194 dialog = gtk.MessageDialog(type = MESSAGETYPE_ERROR, 2204 dialog = gtk.MessageDialog(parent = self.gui.mainWindow, 2205 type = MESSAGETYPE_ERROR, 2195 2206 buttons = BUTTONSTYPE_OK, 2196 2207 message_format = 2197 2208 "Failed to update the statuis of " 2198 2209 "the airplane.") 2210 dialog.set_title(WINDOW_TITLE_BASE) 2199 2211 dialog.run() 2200 2212 dialog.hide()
Note:
See TracChangeset
for help on using the changeset viewer.