473,756 Members | 7,293 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2401
On Thu, Aug 7, 2008 at 11:36 AM, mistersulu <mi********@gma il.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********@gma il.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...@gma il.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
1316
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 about MS Access that would return something like: Access 97 Service Pack 1 Regards
6
13269
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 and I have no knowledge nor experience using such stuff. I've seen some examples pertaining to these special folders but it's all Greek to me and I'm sure somebody here could explain it 100 times quicker
5
2931
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 using as there are many choices to choose from. My database will contain a lot of records. TIA
2
1369
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 programmatically decide what week we have today and accordingly set the dropdownlist with the correct week value.
5
63802
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 forms application (exe) and in the same project i have create 2 forms
3
2925
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 setup(windows=)
2
2119
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 are failed. My main purpose is the version number stored in AssemblyInfo.vb. Thanks for your attention and kindly advice! Regards,
1
2942
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
2074
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; src=&quot;http://www.mysite.com/fckeditor/editor/images/smiley/msn/ regular_smile.gif&quot; /&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
0
9303
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9679
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8542
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4955
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3141
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2508
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.