Ruby gem –> fxruby

Fxruby sample program

1. gem install fxruby

Code:

require ‘fox16’
include Fox
theApp = FXApp.new
theMainWindow = FXMainWindow.new(theApp, “Hello”)
theButton = FXButton.new(theMainWindow, “Hello, World!”)
theButton.connect(SEL_COMMAND) do |sender, selector, data|
exit
end
theApp.create
theMainWindow.show
theApp.run