[wxPython-users] Problems with XmlResourceHandler for FlatNotebook

Robin Dunn robin at alldunn.com
Mon Dec 3 12:37:00 PST 2007


Evan Grim wrote:

> The result of running this code (at least on my machine) provides a 
> frame, but with none of the notebook's pages populated.  Indeed, looking 
> at the debugging print statements, you can see that the resource handler 
> sees all the calls I would expect to see for the CanHandle method, but 
> neither of the flatnotebookpage nodes result in a DoCreateResource call 
> (even though CanHandle is seen and returns True).  Here's the debug 
> output I get:
> 
> Starting test application on the following platform:
>     Python: 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit 
> (Intel)]
>     wx: 2.8.4.0 <http://2.8.4.0> (msw-unicode)
> 

Try with 2.8.7.1.  There was a bug fixed that was preventing the 
recursive execution of Python callbacks to DoCreateResource.  In almost 
all other situations recursive callbacks are not wanted so wxPython 
blocks them in order to work around another bug.  So we added a 
workaround for the workaround for the DoCreateResource case so it would 
allow the recursion.

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





More information about the wxpython-users mailing list