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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:37:12+00:00 2026-05-20T04:37:12+00:00

After reading some items here I have decided to rewrite a little project using

  • 0

After reading some items here I have decided to rewrite a little project using ObjectListView. My problem is that when I try to do self.ListObject.AddObject(object) to add an item to my list it fails, and I am not sure why.

Here is the code where I let the user select a destination dir. At the end of the selection process it is supposed to update the ObjectListView of ActionsOlv with a timestamp and the action taken. Print statements are for debug only.

def onBrowseDest(self, event):
    print "OnBrowseDest"    
    dest = selectFolder("Select the Destination Directory")

    print dest

    self.txDest.SetValue(dest)
    self.anEvent = [Action(datetime.datetime.now(),dest,"Set as Destination dir")]
    self.ActionsOlv.AddObject(self.anEvent)

What is occuring is that I see lines being created in the list, but there is not any content to the line. If I replace the AddObject method with SetObjects

    self.ActionsOlv.SetObjects(self.anEvent)

it will update the display, but each newline overwites the list instead of adding to it.

  • 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-20T04:37:13+00:00Added an answer on May 20, 2026 at 4:37 am

    I figured the issue out. I needed to use AddObjects, no AddObject

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

Sidebar

Related Questions

After reading a couple of answers and comments on some SQL questions here, and
I have an Excel spreadsheet that I'm reading in that contains some £ signs.
After reading some threads on misuses of exceptions (basically saying you don't want to
I've always used a *.h file for my class definitions, but after reading some
After reading the Head First Design Patterns book and using a number of other
I am new to JPA & Hibernate. After reading some online materials I now
I have a batch file that I have been using to install my C#
I have an iterator (actually a Source.getLines ) that's reading an infinite stream of
I'm looking for a HTML and JavaScript parser in .NET. After reading some posts
After reading some reports about the inadequacies of the Mono 2.6 garbage collector, I

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.