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

Timothy Grant timothy.grant at gmail.com
Thu Aug 7 21:05:03 CEST 2008


On Thu, Aug 7, 2008 at 11:36 AM, mistersulu <mistersulu at gmail.com> wrote:
> 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]



More information about the Python-list mailing list