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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:41:06+00:00 2026-05-27T17:41:06+00:00

I have a wxListCtrl that i want to keep in synch with a data

  • 0

I have a wxListCtrl that i want to keep in synch with a data structure. The user will be able to add, delete and modify the data from other controls on the frame, I want the list to update whenever the structure does. What is the best paradigm to use here?

One Idea I was considering was to implement the wxListCtrls paint event method, but i’m concerned with efficiency and it would be a pain to keep track of the selected item.

Right now I have created a “updateTable” method, and I just call it whenever the data structure gets modified. I’m pretty sure I’m going to create an infinite loop if I don’t re-design.

I suppose i could pass a function object..

Thanks in advance.

  • 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-27T17:41:07+00:00Added an answer on May 27, 2026 at 5:41 pm

    You could probably do this with a virtual list control. The wxPython demo has an example. I haven’t tried that before. Personally, I use ObjectListView, which is a wrapper on top of the ListCtrl. I find it much easier to use. You can see how I do it in this article: http://www.blog.pythonlibrary.org/2011/11/10/wxpython-and-sqlalchemy-an-intro-to-mvc-and-crud/

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

Sidebar

Related Questions

I have two wxListCtrl and want to process the Ctrl + Enter keyboard event
I want to add checkboxes to a wxListCtrl, and this works fine except there
I have a ListCtrl that displays a list of items for the user to
Have you refactored from an ActiveRecord to a DataMapper pattern? What conditions prompted the
I'm trying to build a prototype application that consists of a table of data
Have converted devise new session from erb to Haml but doens't work, this is
Have finally got a responsive site working (of a fashion). What I want to
Have a look at one of my websites: moskah.com The problem is that it
Have a simple contact us XPage created. Have server side validation in place that
I have a wxListCtrl (Actually it's an ObjectListView ), set with LC_REPORT with two

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.