Method: TECSCDE.message_box
- Defined in:
- lib/tecscde.rb
.message_box(message, ok_yn_okcan) ⇒ Object
TECSCDE.message_box
Function to open a dialog box displaying the message provided.
- ok_yn_okcan
-
RETURN
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/tecscde.rb', line 13 def self.(, ok_yn_okcan) dialog = Gtk::Dialog.new("Message", nil, nil, [Gtk::Stock::OK, Gtk::Dialog::RESPONSE_OK]) dialog.vbox.add(Gtk::Label.new()) dialog.show_all res = nil dialog.run do |response| res = response end dialog.destroy res end |