Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Created September 2, 2012 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameshibbard/3603107 to your computer and use it in GitHub Desktop.
Save jameshibbard/3603107 to your computer and use it in GitHub Desktop.
Refactored "Hello, World!"
require 'fox16'
include Fox
class HelloWorld < FXMainWindow
def initialize(app)
super(app, "Hello, World!" , :width => 200, :height => 50)
end
def create
super
show(PLACEMENT_SCREEN)
end
end
app = FXApp.new
HelloWorld.new(app)
app.create
app.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment