[wxpython-users] why doesn't fontlist sort work ?
Stef Mientki
s.mientki at ru.nl
Fri May 2 12:45:53 PDT 2008
Tim Roberts wrote:
> On Fri, 02 May 2008 10:14:28 +0200, Stef Mientki <s.mientki at ru.nl> wrote:
>> hello,
>> I want to see all available fonts,
>> so I used the following:
>>
>> fonts = wx.FontEnumerator ()
>> fonts.EnumerateFacenames ()
>> fontList = fonts.GetFacenames ()#.sort()
>> print fontList
>>
>> now if I want to see the list ordered,
>> I would expect to add the sort() method
>> (I've verified that the type of fontList equals list),
>> but I get None ?
>>
>
> Here again, we have one of the "classic Python blunders". ;)
you mean a blunder of Python ;-)
Thanks Tim,
I now remember, but for how long ?
cheers,
Stef
More information about the wxpython-users
mailing list