473,387 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

wxPython pop--up ("could not retrieve information...")

Hi all:

I'm using a wx.ListView object with a multi-threaded wxPython app.
The list is dynamically generated and accessed across two or more
threads. In spite of the fact that I have checks to see if an item at
a given index is in the list and the entire set of logic is contained
within a try: except: block I periodically get pop-up windows stating
"Could not retrieve information for list control item X" when I try to
change or access the list items.

I searched the web and groups for similar posts but can't find any
solutions.

My question is:

Is there a setting somewhere in wxPython to either disable these pop-
up messages or a semaphore or event locking method to enable cross-
thread access to a listview object?

Thanks in advance,
sulu
Aug 7 '08 #1
3 2378
On Thu, Aug 7, 2008 at 11:36 AM, mistersulu <mi********@gmail.comwrote:
Hi all:

I'm using a wx.ListView object with a multi-threaded wxPython app.
The list is dynamically generated and accessed across two or more
threads. In spite of the fact that I have checks to see if an item at
a given index is in the list and the entire set of logic is contained
within a try: except: block I periodically get pop-up windows stating
"Could not retrieve information for list control item X" when I try to
change or access the list items.

I searched the web and groups for similar posts but can't find any
solutions.

My question is:

Is there a setting somewhere in wxPython to either disable these pop-
up messages or a semaphore or event locking method to enable cross-
thread access to a listview object?

Thanks in advance,
sulu
I haven't done any threaded apps, but my understanding is that the you
should not manipulate the GUI outside of the main application thread.
--
Stand Fast,
tjg. [Timothy Grant]
Aug 7 '08 #2
Hi,

2008/8/7 mistersulu <mi********@gmail.com>:
Is there a setting somewhere in wxPython to either disable these pop-
up messages or a semaphore or event locking method to enable cross-
thread access to a listview object?
Maybe this helps: http://wiki.wxpython.org/LongRunningTasks ?

Cheers, Frank
Aug 7 '08 #3
On Aug 7, 1:36*pm, mistersulu <misters...@gmail.comwrote:
Hi all:

I'm using a wx.ListView object with a multi-threaded wxPython app.
The list is dynamically generated and accessed across two or more
threads. *In spite of the fact that I have checks to see if an item at
a given index is in the list and the entire set of logic is contained
within a try: except: block I periodically get pop-up windows stating
"Could not retrieve information for list control item X" when I try to
change or access the list items.

I searched the web and groups for similar posts but can't find any
solutions.

My question is:

Is there a setting somewhere in wxPython to either disable these pop-
up messages or a semaphore or event locking method to enable cross-
thread access to a listview object?

Thanks in advance,
sulu
Accessing the GUI's main thread in wxPython (and most other GUI
toolkits) is a no-no. wxPython does provide a few thread-safe methods,
such as wx.CallAfter and wx.PostEvent. Otherwise you'll end up
blocking the GUI's main thread and the GUI will become unresponsive.
Check out Frank's link for one way to deal with this issue or download
the wxPython demo and check the threaded demo out.

http://wxpython.org/download.php

Also, I recommend joining the wxPython user's mailing list. They're
are a lot of nice people there and you'll learn a lot.

http://wxpython.org/maillist.php

Mike
Aug 7 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ian | last post by:
On the web site: (www.mvps.org/access/) I found a lovely piece of code that retrieves the operating systems name, build number, service pack etc. Is there something similar to retrieve information...
6
by: JuLiE Dxer | last post by:
Is there a way via C# to programmatically retrieve the full path name to folders like "My Documents" ?? I'm seeing examples with the use of Shell32 stuff I believe, SHGetSpecialFolderLocation...
5
by: Roy Gourgi | last post by:
Hi, I am used to working in Visual FoxPro and I would like to be able to create a database and store and retrieve information from it. What is the simplest way to do it and what should I be...
2
by: Kenneth P | last post by:
Hi, I'm trying to find out how I can retrieve the week value of a date. Today we have 2005-05-08 and week 18. Let's say I had a dropdownlist with values 1 to 53 and wanted to...
5
by: Joăo Santa Bárbara | last post by:
hi there i have this error in VS2005 DEV Edition "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information." i have create an windows...
3
by: Jerry | last post by:
I have created an application using wxPython and compiled it using py2exe. When I put setup(console=) in my setup.py file, the resulting application runs just fine. But when I change it to...
2
by: James Wong | last post by:
Hi everybody, I would like to know how to retrieve information from AssemblyInfo.vb inside web service. I've tried many different ways including GetExecutingAssembly or similar method but all...
1
by: ramesh.nrk | last post by:
Hi, How can I retrieve Files/Folder from the "System Volume Information" folders from my system using C# code? thanks & regards. ramesh
2
by: zek2005 | last post by:
Hi! I have a value loaded in a database as following: &lt;p&gt;&lt;strong&gt;test&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;test 2&lt;/ strong&gt;&lt;em&gt;&lt;strong&gt;questions&lt;img alt=&quot;&quot;...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.