Sha256: 121cd9c36bf6d8d4c2477e48182e2c301b10354bdf18f050a99e8cf1278d083e
Contents?: true
Size: 879 Bytes
Versions: 3
Compression:
Stored size: 879 Bytes
Contents
# Copyright (c) 2023 M.J.N. Corino, The Netherlands # # This software is released under the MIT license. # # Some parts are # Copyright 2004-2007, wxRuby development team # released under the MIT-like wxRuby2 license # Adapted for wxRuby3 ### 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.2-x64-mingw-ucrt | samples/minimal/nothing.rb |
wxruby3-0.9.1-x64-mingw-ucrt | samples/minimal/nothing.rb |
wxruby3-0.9.0-x64-mingw-ucrt | samples/minimal/nothing.rb |