[wxPython-dev] 2.8.4.0 release

Roman Rolinsky rolinsky at femagsoft.com
Mon Apr 30 08:57:55 PDT 2007


On Fri, 2007-04-27 at 15:41 -0700, Robin Dunn wrote:
> Roman Rolinsky wrote:
> 
> >> * After starting XRCed I add a Panel to the tree, then click the test 
> >> button and then drag a box sizer onto the test window.  Although the 
> >> sizer is added successfully, I get this exception twice:
> >>
> >> Traceback (most recent call last):
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 1359, in OnLeave
> >>      self.RemoveHL()
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 1364, in RemoveHL
> >>      if hl.item: g.tree.SetItemTextColour(hl.item, g.tree.itemColour)
> >> AttributeError: 'XML_Tree' object has no attribute 'itemColour'
> > 
> > fixed.
> 
> This exception still happens for me.

Oops, sorry. Had to do a little more testing. Not it's fixed for sure (I
didn't realise I put itemColour initialization in a method called only
upon opening an existing file).

> 
> 
> > 
> >> * Then I added some controls, and when adding a wxEXPAND flag to a 
> >> TextCtrl I got this exception, and continued getting it when I tried to 
> >> do anything else with the items in the tree:
> >>
> >> Traceback (most recent call last):
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 772, in OnSelChanged
> >>      self.SelectItem(evt.GetItem())
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 1126, in SelectItem
> >>      self.ChangeSelection(item)
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 786, in ChangeSelection
> >>      self.Apply(xxx, oldItem)
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 1252, in Apply
> >>      g.panel.Apply()
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/panel.py", 
> >> line 173, in Apply
> >>      for p in self.pages: p.Apply()
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/panel.py", 
> >> line 242, in Apply
> >>      paramObj = xxx.params[param]
> >> KeyError: 'border'
> > 
> > Can you tell exactly how to reproduce this?
> 
> I havn't figured out how to consistently reproduce it yet.  Still 
> trying...  I did find a way to reproduce another bug however.  See below.
> 
> 
> > 
> >> * In another test run I made a panel with a box sizer and a flex sizer 
> >> inside of that.  Then I added a bunch of controls to the flex sizer 
> >> without DnD.  Then I dragged some buttons using DnD.  Since they ended 
> >> up in the box sizer instead of the flex sizer I used the make child 
> >> button on the toolbar and although it did move as expected, I got this 
> >> exception:
> >>
> >> Traceback (most recent call last):
> >>    File "xrced.py", line 1334, in OnIdle
> >>      tree.HighLight(tree.pendingHighLight)
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 827, in HighLight
> >>      obj = self.FindNodeObject(item)
> >>    File "/home/work/projects/wx2.9/wxPython/wx/tools/XRCed/tree.py", 
> >> line 760, in FindNodeObject
> >>      child = parentWin.GetChildren()[self.WindowIndex(item)]
> >> IndexError: list index out of range
> > 
> > I made some fixes, please try if it works now.
> 
> 
> I just checked in a fix for a similar bug with the Make Sibling button.
> 
> Here's the steps for the other bug I mentioned above.  So far this only 
> happens on Windows:

Will look at this in the coming hours (no WinPC at hand).

> 
> Click "XML Tree" node in the tree
> Click the wxPanel button in the sidebar
> click the wxBoxSizer button
> click the wxPanel button three times
> click the Make Sibling toolbar button
> select the next to last panel in the tree
> click the Cut toolbar button, this results in this traceback:
> 
> Traceback (most recent call last):
>    File "c:\PROJECTS\wx2.8\wxPython\wx\tools\XRCed\tree.py", line 772, 
> in OnSelChanged
> 
>      self.SelectItem(evt.GetItem())
>    File "c:\PROJECTS\wx2.8\wxPython\wx\tools\XRCed\tree.py", line 1127, 
> in SelectItem
>      self.ChangeSelection(item)
>    File "c:\PROJECTS\wx2.8\wxPython\wx\tools\XRCed\tree.py", line 783, 
> in ChangeSelect
> ion
>      xxx = self.GetPyData(oldItem)
>    File "c:\PROJECTS\wx2.8\wxPython\wx\_controls.py", line 5267, in 
> GetItemPyData
>      return _controls_.TreeCtrl_GetItemPyData(*args, **kwargs)
> wx._core.PyAssertionError: C++ assertion "param" failed at 
> ..\..\src\msw\treectrl.cpp
> (1022) in wxTreeCtrl::SetItemData(): failed to change tree items data
> 
> At this point selecting any other items in the XML Tree results in the 
> property pane not being updated.
> 





More information about the wxpython-dev mailing list