Class: Makeconf::WxApp

Inherits:
Wx::App
  • Object
show all
Defined in:
lib/makeconf/wxapp.rb

Instance Method Summary collapse

Instance Method Details

#on_initObject



6
7
8
9
10
11
12
13
14
# File 'lib/makeconf/wxapp.rb', line 6

def on_init
  @frame = Wx::Frame.new(nil, -1, 'Testing')
  @wizard = Wx::Wizard.new(@frame)
  pages = [
      welcome
      ]
  @wizard.run_wizard(pages[0])
  @wizard.Destroy()
end

#welcomeObject



16
17
18
19
20
# File 'lib/makeconf/wxapp.rb', line 16

def welcome
  x = Wx::WizardPageSimple.new(@wizard)
  Wx::StaticText.new(@wizard, :label => 'testing')
  x
end