[wxPython-users] CustomTreeCtrl drawing error when using
wx.TR_LINES_AT_ROOT
Andrea Gavana
andrea.gavana at gmail.com
Sun Apr 1 14:11:00 PDT 2007
Hi Frank and All,
On 3/31/07, Frank Niessink wrote:
>
> In the attached example the line that connects the root items is
> sometimes drawn as a solid line. Shouldn't it always be drawn as
> stippled line? (Windows XP/Python 2.5/wxPython 2.8.3)
You are right. I am attaching a patch against CVS that fixes this
problem, and also fix all the instances of:
self.ProcessEvent(event)
They are converted to:
self.GetEventHandler().ProcessEvent(event)
As per this discussion on wx-dev:
http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?5:mss:85344:200704:aneiilcghke=
deifmdoea
Robin, do you think it will cause any trouble this last modification?
Thank you.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/
-------------- next part --------------
6c6
< # Latest Revision: 02 Mar 2007, 22.30 CET
---
> # Latest Revision: 01 Apr 2007, 22.30 CET
137,138c137,138
< Latest Revision: Andrea Gavana @ 02 Mar 2007, 22.30 CET
< Version 0.9
---
> Latest Revision: Andrea Gavana @ 01 Apr 2007, 22.30 CET
> Version 1.0
3311c3311
< self.ProcessEvent(event)
---
> self.GetEventHandler().ProcessEvent(event)
3456c3456
< if self.ProcessEvent(event) and not event.IsAllowed():
---
> if self.GetEventHandler().ProcessEvent(event) and not event.IsAll=
owed():
3470c3470
< self.ProcessEvent(event)
---
> self.GetEventHandler().ProcessEvent(event)
3516c3516
< if self.ProcessEvent(event) and not event.IsAllowed():
---
> if self.GetEventHandler().ProcessEvent(event) and not event.IsAll=
owed():
3530c3530
< self.ProcessEvent(event)
---
> self.GetEventHandler().ProcessEvent(event)
4455a4456,4457
> oldPen =3D dc.GetPen()
> dc.SetPen(self._dottedPen)
4456a4459
> dc.SetPen(oldPen)
More information about the wxpython-users
mailing list