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

  • Home
  • SEARCH
  • 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 7078547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:33:41+00:00 2026-05-28T06:33:41+00:00

Am having a bit of challenge in laying out my form using sizers in

  • 0

Am having a bit of challenge in laying out my form using sizers in wxPython, i would appreciate if someone would give me head start in laying out my form as shown in the image.

Sample Form

Please share the sources.

Thanks

  • 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-28T06:33:42+00:00Added an answer on May 28, 2026 at 6:33 am

    I would not mess with sizers manually when designing a complex gui. Just, please, use wxglade and customize manually afterwards.

    It took 15 minutes to do this, mistakes included (I did not filled the list control, sorry):

    enter image description here

    This is the process I followed:

    1) Add a Frame widget, select a wx.Frame.  
    
    2) Customize wx.Frame properties:  
         Give the Frame a MenuBar (the property dialog for the menubar appears).  
         Customize MenuBar: Add File, Edit...  
         Go back to the Frame properties' View (click the Frame icon on the wxglade Tree View).  
         (not nice but it's the way I found to go in and out from Menu and StatusBar dialogs).  
         Give the wx.Frame a StatusBar. Go back (click the Frame icon in the wxglade Tree View).  
    
    3) Create 3 vertical slots from the default BoxSizer (right-click on the sizer + add * 3)
          1st slot: 
              Add a BoxSizer with 5 horizontal slots
              Set proportion=0 to the sizer, set border=5 and mark wxALL
              Add 4 Buttons and a Spacer in those slots
              Mark EXPAND and set proportion=1 in the Spacer properties.
    
          2nd slot:
              Add a SplitterWindow. Select Vertical type.
              Optionally set border=5 with wxALL
              Add a BoxSizer to each section of the SplitterWindow
              At its left, add a ListCtrl
              At its right, add a NoteBook
              Customize NoteBook:
                  Add 4 sheets.
                  Add BoxSizer with 2 vertical slots to first notebook sheet.
                      1st slot: insert a wx.Panel.
                      2nd slot: add a BoxSizer with 3 horizontal slots.
                          Set proportion=0 to the sizer.
                          Add 2 buttons and 1 Spacer in those slots.
                          Mark EXPAND and set proportion=1 in the Spacer properties.
    
          3rd slot:
              Add a BoxSizer with 5 horizontal slots.
              Set proportion=0 to the sizer, set border=5 with wxALL
              Add 2 Buttons, 1 Spacer and 2 Buttons more.
              Mark EXPAND and set proportion=1 in the Spacer properties.
    
    4) Give background colour to the Frame.
      (Choose wisely, you still have 5 minutes left of the 15 allotted).
    

    And finally, customize labels, sizer and widget names, etc.
    Save the wxGlade file for future changes and produce the Python file (In the top Application dialog).
    Trick: Do not modify the generated file, instead import and subclass your Frame in another file to code its functionality.

    One last note: In my experience there are some differences in Linux and Windows with sizers and backgrounds. In Linux, do not use the default Frame’s BoxSizer as indicated in step 3. Instead add an wx.Panel on it, add a BoxSizer to the Panel and continue building from this sizer.

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

Sidebar

Related Questions

Having a bit of trouble using the List.Find with a custom predicate i have
Having a bit of trouble wrapping my head around this one. I'm sure the
I'm having a bit of trouble with jQuery Deferred. I'm using a jQuery ajax
Having a bit of difficulty finding out the proper way to mix in code
Having a bit of difficulty figuring out how to create a named_scope from this
having a bit of a headache on trying to work this out. What I
Having a bit of trouble with the application block, trying to figure out a
I do have a structure having bit-fields in it.Its comes out to be 2
Having a bit of a drawing complication you would call it. My math is
Having a bit of a mental block. I am sure I found a function

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.