Ignore:
Timestamp:
09/25/16 08:13:34 (8 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The pending flights window gets closed automatically if no pending flights remain (re #307).

File:
1 edited

Legend:

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

    r826 r828  
    495495
    496496#------------------------------------------------------------------------------
     497
     498def errroDialog(message, parent = None, secondary = None,
     499                title = WINDOW_TITLE_BASE):
     500    """Display an error dialog box with the given message."""
     501    dialog = gtk.MessageDialog(parent = parent,
     502                               type = MESSAGETYPE_ERROR,
     503                               message_format = message)
     504    dialog.add_button(xstr("button_ok"), RESPONSETYPE_OK)
     505    dialog.set_title(title)
     506    if secondary is not None:
     507        dialog.format_secondary_markup(secondary)
     508
     509    dialog.run()
     510    dialog.hide()
     511
     512#------------------------------------------------------------------------------
     513
     514def communicationErrorDialog(parent = None, title = WINDOW_TITLE_BASE):
     515    """Display a communication error dialog."""
     516    errroDialog(xstr("error_communication"), parent = parent,
     517                secondary = xstr("error_communication_secondary"),
     518                title = title)
     519
     520#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.