Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6208347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:47:34+00:00 2026-05-24T05:47:34+00:00

I am trying to find my bearings using wxRuby, and am using this, perhaps

  • 0

I am trying to find my bearings using wxRuby, and am using this, perhaps outdated, tutorial with ruby 1.9.2p180 (2011-02-18) [i386-mingw32]

This:

class MinimalApp < App
  def on_init
     Frame.new(nil, -1, "GUI Mockup").show()
  end
end

works: brings up an empty window. However, when I try to add a frame to the window, as so:

class MyFrame < Frame
  def initialize()
  super(nil, -1, 'My Frame Title')
 end
end

and change “Frame.new(… ” to “MyFrame.new” I get the following error:

C:/.../wxTest.rb:8:in `initialize': wrong number of arguments (3 for 0) (ArgumentError)
    from C:/.../wxTest.rb:19:in `new'
    from C:/.../wxTest.rb:19:in `on_init'
    from C:/.../wxTest.rb:24:in `main_loop'
    from C:/.../wxTest.rb:24:in `<main>'

At this point I am kind of stuck. I would be grateful for any suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:47:35+00:00Added an answer on May 24, 2026 at 5:47 am

    OK, so seconds after posting, I answerd my own question. The problem was that

     MyFrame.new.(nil, -1, "Multipass GUI Mockup").show()
    

    sets the options twice, or something. Changing it to

     MyFrame.new.show()
    

    did the trick.

    D’oh!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to find an example that has css rollover using sprites & sliding door
Trying to find div element with id=result in returned data from .ajax() using .find()
I'm trying find a way to create mysql users with passwords using php code,
trying to find an example of this, it's possible that I am not going
Trying to find the best way to write this SQL statement. I have a
Trying to find out what the (float) in this function means: static float avgEndpoints
Trying to find a straight answer for this. I am going to be creating
Trying to find out how to build a private cloud using WSO2 Stratos. I
I am learning regular expressions and I am trying find this string day1otlk_XXXX.gif where
Trying to find some information on this but am unable to get any results

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.