Re: [PythonReports-users] [wxPython-users] Fwd: Adding a Field to Detail band
Brought to you by:
a1s
From: Werner <wer...@sf...> - 2012-12-05 08:55:46
|
Robin and Alex, I had a reply from both of you, I'll copy both lists on this. On 05/12/2012 09:17, Robin Dunn wrote: > On 12/5/12 12:05 AM, Werner wrote: >> Hi, >> >> Still testing PythonReports, I would like to use it with 2.9.4, but run >> into the following problem. >> >> I just tested if I run it with 2.8 and install the wxpropgrid from >> https://sourceforge.net/projects/wxpropgrid/ I don't see this. >> >> What is the assert checking in the C++ code? Maybe that gives me a hint >> on what needs to be done differently in 2.9.4. >> > > if ( BaseGetPropertyByName(property->GetName()) && > (!scheduledParent || scheduledParent->IsCategory()) ) > { > wxFAIL_MSG(wxString::Format( > "wxPropertyGrid item with name \"%s\" already exists", > property->GetName())); > > wxPGGlobalVars->m_warnings++; > } > Quote of Alex's reply: I have wxPropertyGrid installed as separate module: http://wxpropgrid.sourceforge.net/ I will give this a try and see, I assume you use version 1.4? Yes, 1.4.15. I have just got mail from author of the editor. He did not reproduce the exception (neither did me), but he thinks he nailed the problem down. The exception is about duplicate name, and the assertion fails when we add a category named "data" when there already is a field named "data" in category "field". It looks like a bug in wxPropertyGrid: logically, field names and category names would go to different name spaces. And you get the exception because you use development version of wxPython which has assertions enabled. End Quote This is what I get when I run it with 1.4.15 installed into wxPython 2.8.12 in the prop grid, so it confirms that there is problem with duplicate name, hopefully fix will make it into 2.9.5:-) . Werner |