Class: MCLimit::GUI
- Inherits:
-
Wx::App
- Object
- Wx::App
- MCLimit::GUI
- Defined in:
- lib/mc-limit/gui.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.error(message, title = 'Error') ⇒ Object
16 17 18 19 |
# File 'lib/mc-limit/gui.rb', line 16 def self.error( , title = 'Error' ) dialog = Wx::MessageDialog.new( nil, , title, Wx::OK | Wx::ICON_ERROR ) dialog.show_modal end |
Instance Method Details
#main_loop(&main) ⇒ Object
11 12 13 14 |
# File 'lib/mc-limit/gui.rb', line 11 def main_loop(&main) @main = main super end |
#on_init ⇒ Object
5 6 7 8 9 10 |
# File 'lib/mc-limit/gui.rb', line 5 def on_init frame = Wx::Frame.new(nil, -1, 'Hidden') @main.call ensure frame.close end |