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 7647193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:24:16+00:00 2026-05-31T10:24:16+00:00

For fun, I decided to pick up Ruby and do some things in GTK.

  • 0

For fun, I decided to pick up Ruby and do some things in GTK. It’s pretty much entirely new to me, but I’ve gotten the hang of the basics.

At the moment, I can’t figure out how to properly nest a box within another box. For example, I have something along the lines of:

window = Gtk::Window.new

main_box = Gtk::HBox.new(false, 2)
left_box = Gtk::VBox.new(false, 2)
right_box = Gtk::VBox.new(false, 2)

main_box.pack_start(left_box, true, true, 0)
main_box.pack_start(right_box, true, true, 0)

window.add(main_box)

Off the top of my head, something like that should create a layout with two vertical boxes laid out side-by-side. I keep getting an error when trying to pack the boxes.

undefined method 'pack_start' for nil:NilClass (no method error)

I’m thinking that maybe I can’t pack an empty box that doesn’t yet include any widgets? Is there something I need to do to explicitly instantiate the boxes?

  • 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-31T10:24:17+00:00Added an answer on May 31, 2026 at 10:24 am

    You may want to try visualruby to avoid having to hand-code your boxes. Its still in development stages now, but I’ll be uploading a new version very soon. Go to:

    http://visualruby.net

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

Sidebar

Related Questions

Since I've seen some pretty fun things done with social networking apis (The twitter
I decided it would be a fun side project to do some work on
Some days ago, I decided that it would be fun to write a streambuf
I recently decided to try to learn some bash scripting and as a fun
In an effort to brush up on some multithreading/sorting fun, I decided to put
I am having fun with Visual C++ some time already. And today i decided,
So I decided to have some pointer fun tonight :) CursorHBList::CursorHBList(UINT iNumHB) :m_ppCursorHB(nullptr) ,m_iNumHB(iNumHB)
I'm pretty new to python and am trying to grab the ropes and decided
While making a little Pong game in C++ OpenGL, I decided it'd be fun
I built (just for fun) 3 classes to help me log some events in

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.