Gspell.Navigator¶
- Implementations:
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Gspell.Navigator¶
- Bases:
- Structure:
- change(word, change_to)¶
-
Changes the current word by change_to in the text. word must be the same as returned by the last call to
Gspell.Navigator.goto_next().This function doesn’t call
Gspell.Checker.set_correction(). A widget using aGspell.Navigatorshould callGspell.Checker.set_correction() in addition to this function.
- change_all(word, change_to)¶
-
Changes all occurrences of word by change_to in the text.
This function doesn’t call
Gspell.Checker.set_correction(). A widget using aGspell.Navigatorshould callGspell.Checker.set_correction() in addition to this function.
- goto_next()¶
- Raises:
- Returns:
Trueif a next misspelled word has been found,Falseif the spell checking is finished or if an error occurred.- word:
a location to store an allocated string, or
None. UseGLib.free() to free the returned string.- spell_checker:
a location to store the
Gspell.Checkerused, orNone. UseGObject.Object.unref() when no longer needed.
- Return type:
(
bool, word:str, spell_checker:Gspell.Checker)
Goes to the next misspelled word. When called the first time, goes to the first misspelled word.
- do_change(word, change_to) virtual¶
-
Changes the current word by change_to in the text. word must be the same as returned by the last call to
Gspell.Navigator.goto_next().This function doesn’t call
Gspell.Checker.set_correction(). A widget using aGspell.Navigatorshould callGspell.Checker.set_correction() in addition to this function.
- do_change_all(word, change_to) virtual¶
-
Changes all occurrences of word by change_to in the text.
This function doesn’t call
Gspell.Checker.set_correction(). A widget using aGspell.Navigatorshould callGspell.Checker.set_correction() in addition to this function.
- do_goto_next() virtual¶
- Returns:
Trueif a next misspelled word has been found,Falseif the spell checking is finished or if an error occurred.- word:
a location to store an allocated string, or
None. UseGLib.free() to free the returned string.- spell_checker:
a location to store the
Gspell.Checkerused, orNone. UseGObject.Object.unref() when no longer needed.
- Return type:
(
bool, word:str, spell_checker:Gspell.Checker)
Goes to the next misspelled word. When called the first time, goes to the first misspelled word.