Sha256: aa862624aae16b1eed65d700d00a9d6f78d78ebb26f76f106ed5b3c614d3e624

Contents?: true

Size: 755 Bytes

Versions: 9

Compression:

Stored size: 755 Bytes

Contents

#!/usr/bin/env ruby
# wxRuby2 Sample Code. Copyright (c) 2004-2008 wxRuby development team
# Adapted for wxRuby3
# Copyright (c) M.J.N. Corino, The Netherlands
###

require 'wx'

module EmptySample

  include WxRuby::Sample if defined? WxRuby::Sample

  def self.describe
    { file: __FILE__,
      summary: 'Empty wxRuby example.',
      description: 'wxRuby example displaying empty frame window.' }
  end

  def self.activate
    frame = Wx::Frame.new(nil, title: "Empty wxRuby App")
    frame.show
    frame
  end

  def self.run
    execute(__FILE__)
  end

end

if $0 == __FILE__
  # This is the minimum code to start a WxRuby app - create a Frame, and
  # show it.
  Wx::App.run do
    self.app_name = 'Nothing'
    EmptySample.activate
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.rc.2 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.rc.1 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.beta.14 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.beta.13 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.beta.11 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.beta.10 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.beta.9 samples/minimal/nothing.rb
wxruby3-0.9.0.pre.beta.8 samples/minimal/nothing.rb