[wxPython-users] bug in demo python
Stef Mientki
s.mientki at ru.nl
Thu Nov 8 12:56:06 PST 2007
Frank Niessink wrote:
> Hi Stef,
>
> 2007/11/8, Stef Mientki <s.mientki at ru.nl>:
>
>> hello,
>>
>> In TreeMixin,
>> dropping a node item,
>> causes the drop target node to get a very small font.
>> Appears both in normal Tree and CustomTree.
>>
>
> It's not a bug. The font of items with children is set smaller in the
> demo to show how to change the font of items (look at line 72 of the
> demo and further):
>
> def OnGetItemFont(self, indices):
> # Show how to change the item font. Here we use a small font for
> # items that have children and the default font otherwise.
> if self.model.GetChildrenCount(indices) > 0:
> return wx.SMALL_FONT
> else:
> return super(DemoTreeMixin, self).OnGetItemFont(indices)
>
>
thanks, and sorry for mis-interpretation of your nice feature.
cheers,
Stef
> Cheers, Frank
> (Author TreeMixin)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
>
>
More information about the wxpython-users
mailing list