Container for Qt signals used by HunspellImportTask.
More...
|
| sigStart = QtCore.pyqtSignal(int, str, str) |
| Emitted before the import starts. More...
|
|
| sigWordWritten = QtCore.pyqtSignal(int, str, str, str, str, int) |
| Emitted when a next word is written to the database. More...
|
|
| sigCommit = QtCore.pyqtSignal(int, str, str, int) |
| Emitted when a commit is made to the database (by default, after each 1000 words). More...
|
|
| sigComplete = QtCore.pyqtSignal(int, str, str, int) |
| Emitted when the import task completes. More...
|
|
| sigError = QtCore.pyqtSignal(int, str, str, str) |
| Emitted when an exception occurs during the import operation. More...
|
|
Container for Qt signals used by HunspellImportTask.
◆ sigCommit
pycross.dbapi.HunspellImportSignals.sigCommit = QtCore.pyqtSignal(int, str, str, int) |
|
static |
Emitted when a commit is made to the database (by default, after each 1000 words).
- Parameters
-
id | int ID of task in the thread pool |
lang | str short language name for the dictionary (e.g. 'en', 'de') |
filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
count | int number of entries (words) written so far |
◆ sigComplete
pycross.dbapi.HunspellImportSignals.sigComplete = QtCore.pyqtSignal(int, str, str, int) |
|
static |
Emitted when the import task completes.
- Parameters
-
id | int ID of task in the thread pool |
lang | str short language name for the dictionary (e.g. 'en', 'de') |
filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
count | int total number of entries (words) written |
◆ sigError
pycross.dbapi.HunspellImportSignals.sigError = QtCore.pyqtSignal(int, str, str, str) |
|
static |
Emitted when an exception occurs during the import operation.
- Parameters
-
id | int ID of task in the thread pool |
lang | str short language name for the dictionary (e.g. 'en', 'de') |
filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
message | str the error message |
◆ sigStart
pycross.dbapi.HunspellImportSignals.sigStart = QtCore.pyqtSignal(int, str, str) |
|
static |
Emitted before the import starts.
- Parameters
-
id | int ID of task in the thread pool |
lang | str short language name for the dictionary (e.g. 'en', 'de') |
filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
◆ sigWordWritten
pycross.dbapi.HunspellImportSignals.sigWordWritten = QtCore.pyqtSignal(int, str, str, str, str, int) |
|
static |
Emitted when a next word is written to the database.
- Parameters
-
id | int ID of task in the thread pool |
lang | str short language name for the dictionary (e.g. 'en', 'de') |
filepath | str full path to the downloaded dictionary (saved in pycross/assets/dic by default) |
word | str the word string, e.g. 'father' |
pos | str the word's part of speech, e.g. 'n' (=noun) |
count | int number of entries (words) written so far |
The documentation for this class was generated from the following file: