gtkspell.Spell — Spell object for gtk.TextView
class gtkspell.Spell(): |
Functions
def gtkspell.get_from_text_view(view)
The gtkspell.Spell
used in concert with gtk.TextView
provides mis-spelled word highlighting in red and offers a right click pop-up menu with suggested corrections.
gtkspell.Spell(text, lang=None)
| a gtk.TextView |
| the language to use, in a form like "en_US"
or None |
Returns : | a new gtkspell.Spell.
|
Creates a new gtkspell.Spell object.
lang is None then $LANG will be used, if also $LANG is None
or not valid then English will be used as default.
def set_language(lang)
| the language to use in the form "en_US". |
The set_language() method set the language that have to be used while checking for mispelled words.
def recheck_all()
The recheck_all() method recheck the spelling in the entire buffer.
def detach()
The detach() method detaches this
gtkspell.Spell
from its gtk.TextView, use the function
gtkspell.get_from_text_view
to retrieve a gtkspell.Spell from a
gtk.TextView.
def gtkspell.get_from_text_view(view)
| a gtk.TextView.
|
Returns : | the gtkspell.Spell object
or None if there is no gtkspell.Spell
attached to view. |
Retrieves the gtkspell.Spell object attached to a text view.