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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:29:25+00:00 2026-05-29T10:29:25+00:00

I have a python practise project. I’m going to write a GUI program which

  • 0

I have a python practise project. I’m going to write a GUI program which can tell you the TCP download and upload speed per process. Just like nethogs does but in Python with wxPython as GUI frontend.
The program should something look like this:

----- ---------------- ------  -------   --------
 PID    program name    user    send     received
----- ---------------- ------  -------   --------
1937      firefox       root   10 KB/s    50 KB/s
-------------------------------------------------
3720       wget         root   0  KB/s    120 KB/s

The data shows here are just dummy ones(sorry, I can’t post images. I hard coded some data using wx.ListCtrl).

I don’t have much experience in GUI programming, so how can I add/delete one row when needed ? Say, I just close the firefox, so that row shoun’t be there anymore, or I just lanched a wget process and that should be added to the list. The send/received speed may not constant, so I also need to update the change in real time.

Do I need some event notify mechanism ? Does wx.ListCtrl can handle the real time change ?
Hope I’ve annouced my question clearly.

  • 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-29T10:29:26+00:00Added an answer on May 29, 2026 at 10:29 am

    You’ll need to redo the ListItems. Basically that means that whenever something changes, you empty the ListCtrl and then reinsert everything minus whatever was moved. I’ve found that to be the easiest way. I use ObjectListView instead of ListCtrl whenever possible as I think it’s easier to use and update. You might find one of these articles helpful in that respect:

    • http://www.blog.pythonlibrary.org/2011/11/10/wxpython-and-sqlalchemy-an-intro-to-mvc-and-crud/
    • http://www.blog.pythonlibrary.org/2009/12/23/wxpython-using-objectlistview-instead-of-a-listctrl/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have write a python library app(which contains several *.py files). And several of
I do NOT have python/ruby enabled. My Question: I frequently have to write things
I have a Python project with the following directory structure: project/ project/src/ project/src/somecode.py project/src/mypackage/mymodule.py
In my Django project, I have a context processor which returns a FacebookUser object
I have a class that handles command line arguments in my program using python's
I'm starting a Python project and expect to have 20 or more classes in
I'm interacting with an API for which I have a Python library. The library
I have a simple python application where my directory structure is as follows: project/
I have a situation where I have six possible situations which can relate to
I have Python 2.6 and I want to install easy _ install module. The

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.