Hi:
I just want to say thank you for the help and tips from this community. I am glad and will make any future tools and even major programs using wxPython. Just to echo some other more experienced software engineers I know, "I wonder why wxPython is not the default user interface to python." It is a breeze and quite fun to use coming from C++ (and going back and forth for that matter which is important). I actually look forward to a night or a weekend of wonderful new routines and just the steady beat of my heart - as opposed to the panic of an imminent deadline.
Just to get back on a recent question I had asked concerning using lists to store entities in a document and using def getDData() to get them back. These lists are stored thus:
[[sheet01, entity01, entity02, ...], [sheet02, entity01, entity02 ...]]
I still get the odd entity lurking around the screen after I change sheets and refresh my screen unless I move the window to force a repaint. To get rid of it I added a capability that does what my onPaint method does without having to use wxPaintDC.
After Chris Barker's reply, I changed my document storage structure from lists to dictionaries, storing lists and their corresponding sheets. I am in the test phase now but from a preliminary observation, I think it is more efficient and much faster. I still have to manually refresh though.
I think I may have an explanation. I implemented my system so that when there are entities on the screen and the user moves the mouse, each entity that the mouse touches highlights itself and provides some info such as name, children and parents. When I changed to using dictionaries, my screen clears properly when I change sheets but sometimes when I move the mouse around the screen an entity or two usually come back until I manually refresh the screen.
Anyway, thanks to everyone once again.
Sincerely
Kene Meniru