[Tutor] python / gtk / Webkit app wrapper.

eryksun eryksun at gmail.com
Fri Jun 28 02:07:03 CEST 2013


On Thu, Jun 27, 2013 at 5:57 PM, Darin Lawson Hosking <darinlh at gmail.com> wrote:
>
> I also tried this and it appears to run ie no errors BUT does not highlight
> misspellings?
>
> settings = webkit.WebSettings()
> settings.set_property('enable-spell-checking', True)

Try:

    web = webkit.WebView()
    web.open('...')
    settings = web.get_settings()
    settings.set_property('enable-spell-checking', True)
    settings.set_property('spell-checking-languages', 'en_GB')

Replace 'en_GB' with your desired language_country code.


More information about the Tutor mailing list