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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:30:54+00:00 2026-05-13T22:30:54+00:00

I am new to wxPython. Can someone help me in: How to add multiple

  • 0

I am new to wxPython. Can someone help me in:

How to add multiple TreeListCtrl on Frame/Panel like following:

First TreeListCtrl
   show the tree and its child
Second TreeListCtrl
   show the tree and its child  
Third TreeListCtrl
   show the tree and its child

Second, what is the best way to implement a TreeListCtrl in wxPython like TreeList(shown in black border) shown in following image? Do i need to customize the default wxPython TreeListCtrl or is there any way without it? Any suggestions?

alt text http://www.freeimagehosting.net/uploads/b0b9583224.png

Actually, i want to show/add multiple root in the TreeList, i know this is not possible in wxPython, so what is the right way achieve such functionality?

Regards,

  • 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-13T22:30:54+00:00Added an answer on May 13, 2026 at 10:30 pm

    You CAN actually have multiple roots in practice; simply create a root node you don’t care about, and add all the “roots” as children, then use the style which I think is wx.TR_HIDE_ROOT. This will have the desired effect of multiple top-level nodes.

    I think you should be able to achieve a similar look with a TreeListCtrl. If not you can also check out CustomTreeCtrl, and perhaps there is also a CustomTreeListCtrl.

    Will having multiple roots via the hidden parent root solve your problem of needing multiple controls? If not, just create a wx.Panel, give it a wx.BoxSizer(wx.VERTICAL), and call sizer.Add(treeCtrl1) et cetera for each one, then finally set that sizer as the panel’s sizer. There are plenty of tutorials on sizers if you are not familiar with them.

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

Sidebar

Related Questions

I want to add a new feature in a wxPython class. I also want
I am trying create a new frame in wxPython that is a child of
I'm relatively new to using wxPython and was wondering if someone could tell me
I'm relatively new to wxPython (but not Python itself), so forgive me if I've
I am fairly new to programming and to python and wxpython. I have looked
new to c#. I'm trying to make a simple system where I can search
I have created a custom control (based on a panel) in wxPython that provides
I'm new to wxPython, so bear with me. I'm creating a custom GUI set
How can I store button, listbox and other wxpython widgets in an array? My
Is it better to do it all at once? I'm very new to wxPython

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.