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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:37:45+00:00 2026-05-13T07:37:45+00:00

Here’s the general layout of my GUI: ||Title||||||||||||||||||x| | |words| | |blah | |

  • 0

Here’s the general layout of my GUI:

||Title||||||||||||||||||x|
|                   |words|
|                   |blah |
|  .   .  .   .     |     |
|                   |     |
|    .              |     |
|                   |bttn |
|||||||||||||||||||||||||||

Basically, there are two large panes, the left which resizes according to how big the window is, and the right which stays constant. I’d like to put some interactive widgets in the right panel, such as checkboxes, radio buttons, etc, but the number of things I want to put in may be larger than the size of the whole application. If I want to make that panel scrollable in wxPython (or equivalently, wxWidgets), how would I go about it? Here’s my guess:

class MyGUI(wx.Frame):
  def __init__(self)
    wx.Frame(None, -1)
    main_panel = wx.Panel(self,-1)
    main_sizer = wx.BoxSizer(wx.HORIZONTAL)
    main_panel.SetSizer(main_sizer)

    left_panel = wx.Panel(main_panel,-1)
    main_sizer.Add(left_panel, 1, wx.EXPAND)

    right_panel = wx.Panel(main_panel,-1)
    right_sizer = wx.BoxSizer(wx.VERTICAL)
    right_panel.SetSizer(right_sizer)
    main_sizer.Add(right_panel, 0, wx.EXPAND)

    for i in range(100):
      right_sizer.Add(wx.CheckBox(right_panel, -1, "Happy Box"), 0, wx.EXPAND)
    right_sizer.Add(wx.Button(right_panel, -1, "Grow!"),1, wx.EXPAND)

    right_panel.Fit()
    main_panel.Fit()

    self.Layout()
    self.Maximise()
    self.Show()

Now I know that wxPython happens to have a nifty little panel called ScrolledPanel, but for one reason or another it doesn’t seem to actually recognize how large the right side panel is; which is to say, if I resize the GUI, the scrollbars do not correct themselves. In fact, they’re not even right in the first place. How would I go about this sensibly?

  • 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-13T07:37:45+00:00Added an answer on May 13, 2026 at 7:37 am

    wxScrolledWindow is probably what you are looking for. I’ve had tons of problems with wxWidgets and widgets that changes size dynamically, but what you want to do is probably resize the widgets inside wxScrolledWindow, and then call FitInside() on the scrolled window.

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

Sidebar

Related Questions

Here is the two scripts I have Script 1: <? include('config.php'); $json = $_POST['payload'];
here is the site : http://www.notrepanorama.com at the bottom left, i use a jquery
Here is my problem.. I have the option to create(add) two new input fields,
Here's the two scenarios. We are using a manually built xml soap request with
Here's the code I'm running. Basically I scrape data, and place them into simple
Here's what I'm trying to do... It's quite simple and obviously there must be
Here there are an example of saving an OpenOffice file to PDF. I'm using
Here is the UI of Windowbuilder: http://www.java-forums.org/blogs/eclipse/attachments/2900d1328496793-using-windowbuilder-design-gui-eclipse-properties-pane.png The Properties view is at the bottom
Here's the view: @if (stream.StreamSourceId == 1) { <img class=source src=@Url.Content(~/Public/assets/images/own3dlogo.png) alt= /> }
Here's my code in the <head></head> : <link rel=stylesheet href=http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css /> <script type=text/javascript src=http://code.jquery.com/jquery-1.7.1.min.js></script>

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.