Class: QDA::GUI::WarningDialog

Inherits:
Wx::MessageDialog
  • Object
show all
Defined in:
lib/weft/wxgui/dialogs.rb

Overview

A simple class for seeking warnings of risky requests.

Constant Summary collapse

WARN_DIALOG_FLAGS =
Wx::NO_DEFAULT|Wx::OK|Wx::CANCEL|Wx::ICON_EXCLAMATION

Class Method Summary collapse

Class Method Details

.display(title, message) ⇒ Object



49
50
51
# File 'lib/weft/wxgui/dialogs.rb', line 49

def self.display(title, message)
  new(nil, message, title, WARN_DIALOG_FLAGS).show_modal()
end