html window

Robin

This works wonderfully for the HTML window. I can ask
for fixed width fonts and use any one of them. Is
there a similar thing for the font in the
wxTextCtrl's.

Nigel

···

--- Robin Dunn <robin@alldunn.com> wrote:

Nigel W. Moriarty wrote:
> Robin
>
> Someone said to use the SetFonts method of the
> HTMLWindow but there is not way to know what fonts
are
> available AND the object seems to be different
from
> wx.Font.

See the docs. SetFonts takes two strings for the
face names to use for
the proportional and fixed fonts, and also an
optional list of 7
integers representing sizes. You can find out the
fonts that are
installed by using the wx.FontEnumerator.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax
with wxPython!

---------------------------------------------------------------------

To unsubscribe, e-mail:
wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:
wxPython-users-help@lists.wxwidgets.org

---
Nigel W. Moriarty, \alphabet_soup

__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest

Nigel W. Moriarty wrote:

Robin

This works wonderfully for the HTML window. I can ask
for fixed width fonts and use any one of them. Is
there a similar thing for the font in the
wxTextCtrl's.

You can pass the facename to the wx.Font constructor and it should give precedence to that name and will make the font using it if possible. Then you can just use the textctrl's SetFont.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!