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 123893

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:21:33+00:00 2026-05-11T04:21:33+00:00

I am trying to find a simple way to layout a 3 pane window

  • 0

I am trying to find a simple way to layout a 3 pane window using wxPython.

I want to have a tree list in the left pane, then have a right pane that is split into two – with an edit component in the top part and a grid component in the bottom part.

Something along the lines of:

 -------------------------------------- |             |                      | |             |        Edit          | |  Tree       |        Control       | |  Control    |                      | |             |----------------------| |             |                      | |             |        Grid          | |             |                      | -------------------------------------- 

I would like the window to be re-sizable and give the user the ability to change the (relative) size of each of the components within the windows by dragging the borders.

I figure that I need some combination of sizers and/or splitter-window components but can’t find a decent example of this kind of window in the documentation or on the web.

  • 0 0 Answers
  • 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. 2026-05-11T04:21:34+00:00Added an answer on May 11, 2026 at 4:21 am

    First of all download wxGlade a gui builder for wxPython (alternative XRCed, i prefere wxGlade).

    Then you have to decide if you want to use a GridSizer or a Splitter and you are done. Below you find both (between Tree and right side is a GridSizer -> resizes automatically). Between Edit and GridCtrl is a Sizer (manual Resize).

    Regards.

    one minute work without entering a single line of code:

    #!/usr/bin/env python # -*- coding: utf-8 -*- # generated by wxGlade 0.6.3 on Sat Feb 07 10:02:31 2009  import wx import wx.grid  # begin wxGlade: extracode # end wxGlade    class MyDialog(wx.Dialog):     def __init__(self, *args, **kwds):         # begin wxGlade: MyDialog.__init__         kwds['style'] = wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.THICK_FRAME         wx.Dialog.__init__(self, *args, **kwds)         self.window_1 = wx.SplitterWindow(self, -1, style=wx.SP_3D|wx.SP_BORDER)         self.tree_ctrl_1 = wx.TreeCtrl(self, -1, style=wx.TR_HAS_BUTTONS|wx.TR_LINES_AT_ROOT|wx.TR_DEFAULT_STYLE|wx.SUNKEN_BORDER)         self.text_ctrl_1 = wx.TextCtrl(self.window_1, -1, 'This is the Edit', style=wx.TE_MULTILINE)         self.grid_1 = wx.grid.Grid(self.window_1, -1, size=(1, 1))          self.__set_properties()         self.__do_layout()         # end wxGlade      def __set_properties(self):         # begin wxGlade: MyDialog.__set_properties         self.SetTitle('dialog_1')         self.grid_1.CreateGrid(10, 3)         # end wxGlade      def __do_layout(self):         # begin wxGlade: MyDialog.__do_layout         grid_sizer_1 = wx.FlexGridSizer(1, 2, 3, 3)         grid_sizer_1.Add(self.tree_ctrl_1, 1, wx.EXPAND, 0)         self.window_1.SplitHorizontally(self.text_ctrl_1, self.grid_1)         grid_sizer_1.Add(self.window_1, 1, wx.EXPAND, 0)         self.SetSizer(grid_sizer_1)         grid_sizer_1.Fit(self)         grid_sizer_1.AddGrowableRow(0)         grid_sizer_1.AddGrowableCol(0)         grid_sizer_1.AddGrowableCol(1)         self.Layout()         # end wxGlade  # end of class MyDialog   class MyApp(wx.App):     def OnInit(self):         wx.InitAllImageHandlers()         mainDlg = MyDialog(None, -1, '')         self.SetTopWindow(mainDlg)         mainDlg.Show()         return 1  # end of class MyApp  if __name__ == '__main__':     app = MyApp(0)     app.MainLoop() 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 142k
  • Answers 142k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer ASP.Net MVC might have some real advantages for you here.… May 12, 2026 at 8:18 am
  • Editorial Team
    Editorial Team added an answer HTML: <select id="menu" name="menu"> <option value="something">Click here</option> <option value="nothing">Not this</option>… May 12, 2026 at 8:18 am
  • Editorial Team
    Editorial Team added an answer The Graphics object that you get from Graphics.FromImage is a… May 12, 2026 at 8:18 am

Related Questions

I have a list of variable length and am trying to find a way
I have a XML Structure that looks like this. <sales> <item name=Games sku=MIC28306200 iCat=28
I am trying to find the easiest way to intercept TCP SYN packets sent
I am trying to catch POST data from a simple form. This is the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.