Created
September 2, 2012 18:54
-
-
Save jameshibbard/3603107 to your computer and use it in GitHub Desktop.
Refactored "Hello, World!"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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