Sha256: d1be8c4297a47e105b9251d0e77dba46df80ea19a39c74786940de2a48a68d6d
Contents?: true
Size: 616 Bytes
Versions: 20
Compression:
Stored size: 616 Bytes
Contents
#!/usr/bin/env ruby begin require 'wx' rescue LoadError => no_wx_err begin require 'rubygems' require 'wx' rescue LoadError raise no_wx_err end end module Demo def Demo.run(frame, nb, log) dlg = Wx::MessageDialog.new(frame, "Hello from Ruby and wxRuby!", "A Message Box", Wx::OK | Wx::ICON_INFORMATION) dlg.show_modal() dlg.destroy() end def Demo.overview return "Show a message to the user in a dialog" end end if __FILE__ == $0 run_solo_lib = File.join( File.dirname(__FILE__), 'run.rb') load run_solo_lib run File.basename($0) end
Version data entries
20 entries across 20 versions & 1 rubygems