Return to Snippet

Revision: 5938
at April 14, 2008 18:50 by dbug13


Updated Code
#!/usr/bin/env ruby
require 'rubygems'
require 'wx'

include Wx

class MainFrame < Frame
  def initialize(title)
    super(nil,-1, title)
  end
end

class MainApp < App
  def on_init
    frame = MainFrame.new("Test App")
    frame.show()
  end
end

MainApp.new.main_loop

Revision: 5937
at April 14, 2008 17:39 by dbug13


Initial Code
#!/usr/bin/env ruby
require 'rubygems'
require 'wx'

include Wx

class MainFrame < Frame
  def initialize(title)
    super(nil,-1, title)
  end
end

class MainApp < App
  def on_init
    frame = MainFrame.new("Test App")
    frame.show()
  end
end

MainApp.new.main_loop

Initial URL

                                

Initial Description

                                

Initial Title
wxRuby basic app

Initial Tags
ruby

Initial Language
Ruby