Sha256: 4fb5c455ae2f8bf00c21574e3d05517a2e2bba2b4771a2593041256c6622f058

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2006 Kevin B. Smith
# Freely reusable code: see SAMPLES-LICENSE.TXT for details

begin
  require 'wx'
rescue LoadError => no_wx_err
  begin
    require 'rubygems'
    require 'wx'
  rescue LoadError
    raise no_wx_err
  end
end

# This is the minimum code to start a WxRuby app - create a Frame, and
# show it.
Wx::App.run do 
  frame = Wx::Frame.new(nil, :title => "Minimal wxRuby App")
  frame.show
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby-1.9.5-i386-mswin32 samples/minimal/nothing.rb
wxruby-1.9.4-i386-mswin32 samples/minimal/nothing.rb
wxruby-1.9.2-i386-mswin32 samples/minimal/nothing.rb