Sha256: deb0eb70a2a1edd841218ab276bf36a6efe4c20185a035344bf7017ec072cf5d

Contents?: true

Size: 468 Bytes

Versions: 12

Compression:

Stored size: 468 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

12 entries across 12 versions & 1 rubygems

Version Path
wxruby-1.9.3-i386-mswin32 samples/minimal/nothing.rb
wxruby-1.9.2-powerpc-darwin8.10.0 samples/minimal/nothing.rb
wxruby-1.9.2-i686-linux samples/minimal/nothing.rb
wxruby-1.9.2-i686-darwin8.8.2 samples/minimal/nothing.rb
wxruby-1.9.2-x86_64-linux samples/minimal/nothing.rb
wxruby-1.9.3-universal-darwin samples/minimal/nothing.rb
wxruby-1.9.3-x86-linux samples/minimal/nothing.rb
wxruby-1.9.4-x86_64-linux samples/minimal/nothing.rb
wxruby-1.9.4-x86-linux samples/minimal/nothing.rb
wxruby-1.9.5-universal-darwin-9 samples/minimal/nothing.rb
wxruby-1.9.5-x86-linux samples/minimal/nothing.rb
wxruby-1.9.5-x86_64-linux samples/minimal/nothing.rb