Ed Leafe wrote:
···
On Jun 9, 2006, at 9:27 AM, Steve Holden wrote:
A while ago I was working on a way to store font information in a text configuration file. I thought I'd got it licked, but unfortunately my first port (from Windows to Linux) makes it look as though I haven't.
I wonder if anyone has already done this and can point me at a canned solution? If not I can willingly bore you with the details, but I warn you in advance it's not pretty.
We've done a lot of work in sorting out the underlying guts of wxPython's font handling for Dabo, so that you can work with an object's font in a more sane fashion, with code such as:
textbox.FontSize = 12
textbox.FontBold = True... and it just works like you would expect. If you aren't in a position to use dabo.ui for your app, you can take a look at the font- handling code in dabo.ui.uiwx.dPemMixin.py to see if any of our approaches might work for you.
Thanks, Ed, I'll take a look at the code.
Weren't you going to update me after PyCon about Dabo on Windows? I don't remember hearing anything, so I hope this is a sign that you are earning a living!
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden