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

The Archive Base Latest Questions

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

I have a gui with 3 basic areas. A list control that spans the

  • 0

I have a gui with 3 basic areas. A list control that spans the entire width of the window above two areas of buttons that are grouped based on function of the button.

When the window is resized all 3 areas are resized in proportion to the growth of the window. What I want to happen is the two button areas to not do any height growth, but would allow width growth.

Is this possible?

Here is what I am using as an example. I generated this using wxGlade

#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
# generated by wxGlade 0.6.3 on Thu Apr 14 07:05:59 2011

import wx

# begin wxGlade: extracode
# end wxGlade



class mainFrame(wx.Frame):
    def __init__(self, *args, **kwds):
        # begin wxGlade: mainFrame.__init__
        kwds["style"] = wx.DEFAULT_FRAME_STYLE
        wx.Frame.__init__(self, *args, **kwds)
        self.panelLower = wx.Panel(self, -1)
        self.panelUpper = wx.Panel(self, -1)
        self.sizerPassword_staticbox = wx.StaticBox(self.panelLower, -1, "Password Settings")
        self.sizerInstall_staticbox = wx.StaticBox(self.panelLower, -1, "Install Actions")
        self.sizerStatus_staticbox = wx.StaticBox(self.panelUpper, -1, "Status")
        self.listStatus = wx.ListCtrl(self.panelUpper, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)
        self.list_ctrl_1 = wx.ListCtrl(self.panelLower, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER)

        self.__set_properties()
        self.__do_layout()
        # end wxGlade

    def __set_properties(self):
        # begin wxGlade: mainFrame.__set_properties
        self.SetTitle("frame_1")
        # end wxGlade

    def __do_layout(self):
        # begin wxGlade: mainFrame.__do_layout
        mainSizer = wx.GridSizer(2, 1, 0, 0)
        sizerLower = wx.GridSizer(1, 2, 0, 0)
        sizerInstall = wx.StaticBoxSizer(self.sizerInstall_staticbox, wx.HORIZONTAL)
        sizerInstallButtons = wx.GridSizer(1, 2, 0, 0)
        sizer_4 = wx.BoxSizer(wx.VERTICAL)
        sizerPassword = wx.StaticBoxSizer(self.sizerPassword_staticbox, wx.HORIZONTAL)
        sizerPasswordButtons = wx.GridSizer(3, 8, 0, 0)
        sizerStatus = wx.StaticBoxSizer(self.sizerStatus_staticbox, wx.VERTICAL)
        sizerStatus.Add(self.listStatus, 1, wx.EXPAND, 0)
        self.panelUpper.SetSizer(sizerStatus)
        mainSizer.Add(self.panelUpper, 1, wx.EXPAND, 0)
        sizerPassword.Add(sizerPasswordButtons, 1, wx.EXPAND, 0)
        sizerLower.Add(sizerPassword, 1, wx.EXPAND, 0)
        sizerInstallButtons.Add(self.list_ctrl_1, 1, wx.EXPAND, 0)
        sizerInstallButtons.Add(sizer_4, 1, wx.EXPAND, 0)
        sizerInstall.Add(sizerInstallButtons, 1, wx.EXPAND, 0)
        sizerLower.Add(sizerInstall, 1, wx.EXPAND, 0)
        self.panelLower.SetSizer(sizerLower)
        mainSizer.Add(self.panelLower, 1, wx.EXPAND, 0)
        self.SetSizer(mainSizer)
        mainSizer.Fit(self)
        self.Layout()
        # end wxGlade

# end of class mainFrame


if __name__ == "__main__":
    app = wx.PySimpleApp(0)
    wx.InitAllImageHandlers()
    mainFrame = mainFrame(None, -1, "")
    app.SetTopWindow(mainFrame)
    mainFrame.Show()
    app.MainLoop()
  • 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-21T07:32:14+00:00Added an answer on May 21, 2026 at 7:32 am
    import wx
    
    class MainWindow(wx.Frame):
        def __init__(self, *args, **kwargs):
            wx.Frame.__init__(self, *args, **kwargs)
            self.panel1 = wx.Panel(self)
            self.panel1.SetBackgroundColour(wx.GREEN)
            self.panel2 = wx.Panel(self)
            self.panel2.SetBackgroundColour(wx.RED)
            self.panel3 = wx.Panel(self)
            self.panel3.SetBackgroundColour(wx.WHITE)
    
            self.sizer1 = wx.BoxSizer()
            self.sizer2 = wx.BoxSizer(wx.VERTICAL)
            self.sizer1.Add(self.panel1, proportion=1, flag=wx.EXPAND)
            self.sizer1.Add(self.panel2, proportion=1, flag=wx.EXPAND)
            self.sizer2.Add(self.panel3, proportion=1, flag=wx.EXPAND)
            self.sizer2.Add(self.sizer1, proportion=0, flag=wx.EXPAND)
    
            self.SetSizerAndFit(self.sizer2)       
            self.Show()
    
    app = wx.App(False)
    win = MainWindow(None)
    app.MainLoop()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The last GUI programming I have done was with Visual Basic, which included objects
Does MSTest have standalone GUI similar to nUnit that lets me use it and
I have a large GUI project that I'd like to port to Linux. What
I have a Windows GUI application that's using the Qt framework (currently version 3.3.5,
I have a fat GUI that it getting fairly complex, and I would like
I have managed to serialize my very basic GUI-object containing a JTextArea and a
I'm writing a basic GUI application that essentially invokes other processes given some parameters,
I am working on a small basic GUI program that gets the files from
I have a pretty basic understanding of the GUI thread and the message loop,
I am creating a basic GUI with the Windows API and I have run

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.