[wxPython-users] Re: XRC and dynamically created widgets?

Robin Dunn robin at alldunn.com
Mon Oct 2 14:51:54 PDT 2006


John Salerno wrote:
> John Salerno wrote:
> 
>> So I hope someone can explain how to use XRC when you expect to create 
>> new widgets during runtime.
> 
> ::sigh:: This is still behaving strangely. I attach my two files (one 
> for the program, one for XRC). For some reason when you go to File --> 
> New Record, it properly creates a new tab, but the background changes to 
> a darker color. But if you drag the window to a larger sizer, the rest 
> of the revealed space is white, while the darker color remains in its 
> original size.

This is a known problem with, I think, how wx deals with the notebook 
theme settings for XP.  Nobody's found a solution yet.  It only happens 
when the notebook has no pages to begin with, so the easiest way to work 
around it is to either always give the notebook at least on page, or 
don't create the notebook until you need to show the first page.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list