[wxPython] wxHtml Font

Has anyone tried adjusting the fonts on the wxHtml?

In the "old" method you used something like:

        self.html = SetHtmlWindow(win, -1)
        self.html.SetFonts("", wxSLANT, "", wxSLANT, [7, 8, 10, 10, 10, 16,
16])

In the first release of the Interim release I was alble to use:

        self.html.SetFonts("", "", [7, 8, 10, 10, 10, 16, 16])

Now the latest interim 2.14 doesn't even like that. The error is the 4
variable needs to be an int_p. I wasn't sure if a list qualified, but I cannot
find a variable type that it likes.

Any suggestions. I looked at the source code and it's looking for a * int
type, so that seems to match.

Lorne White

Has anyone tried adjusting the fonts on the wxHtml?

In the "old" method you used something like:

        self.html = SetHtmlWindow(win, -1)
        self.html.SetFonts("", wxSLANT, "", wxSLANT, [7, 8, 10, 10, 10,

16,

16])

In the first release of the Interim release I was alble to use:

        self.html.SetFonts("", "", [7, 8, 10, 10, 10, 16, 16])

Now the latest interim 2.14 doesn't even like that. The error is the 4
variable needs to be an int_p. I wasn't sure if a list qualified, but I

cannot

find a variable type that it likes.

Any suggestions. I looked at the source code and it's looking for a * int
type, so that seems to match.

This is a known problem and has been fixed.

Everybody cross your fingers for a new release tomorrow!

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com

wxPython has moved Check it out!