Sha256: e1bdaaadcdd7ceef29f481a88e6596c32b3711d6122bbc04269d422a544e5c12
Contents?: true
Size: 927 Bytes
Versions: 13
Compression:
Stored size: 927 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.icon = Wx.Icon(:sample, Wx::BITMAP_TYPE_XPM, art_path: File.join(__dir__, '..')) 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
13 entries across 13 versions & 1 rubygems