【 utils.spellcheckdialog 】
格式:
action, replacement = utils.spellcheckdialog (word, suggestions)
中文:
action, replacement = utils.spellcheckdialog (單字, 拼音建議)
說明:
呼叫此函數會顯示一個拼寫錯誤的對話框。它需要兩個參數,第一個是拼
寫錯誤的單詞,第二個是建議單詞表。如果對話框被取消,函數會回傳 nil。
範例:
print (utils.spellcheckdialog ("fod", {"food", "fodder"} ))
--> change food
--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--==-==--