Sha256: 09386624df8e470798bbaf91d61a0e4366b4854586c23f2e191b953f11dc6fa0
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
#!/usr/bin/env ruby require 'java' $:.unshift(File.expand_path("../../lib", __FILE__)) require 'swt' class ButtonExample def initialize style = ::Swt::SWT::CLOSE | ::Swt::SWT::MIN | ::Swt::SWT::V_SCROLL #| ::Swt::SWT::MAX | ::Swt::SWT::RESIZE @shell = Swt::Widgets::Shell.new(style) @shell.open end def start ::Swt.event_loop { @shell.disposed? } end end ButtonExample.new.start
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/swt-raw.rb |