Recent comments


Syndicate


Follow Me

Twitter Facebook

FXRuby

Hello FXRuby

To illustrate how simple, clean and fun FXRuby is, Here's a sample Hello World:

require 'fox16'

include Fox

class HelloWindow < FXMainWindow
  
  def initialize(app)
    super(app, "Hello World!", :width => 200, :height => 100)
  end
  
  def create
    super
    show(PLACEMENT_SCREEN)
  end
  
end

if __FILE__ == $0
  FXApp.new do |app|
    HelloWindow.new(app)
    app.create
    app.run
  end
end

A little bit of FXRuby

I've been looking around for a Ruby GUI toolkit that's kickass and I've since been hearing positive feedback regarding FXRuby so I tried it out tonight.Now I have some experience with other GUI libraries like PyQt (Python + Qt) for example but FXRuby for me is far more supperior when it comes to simplicity.. mainly because of Ruby. So after a little reading here and there, I tried this simple image browser app.