pycrossword  0.4
Pure-Python implementation of a crossword puzzle generator and editor
Static Public Attributes | List of all members
pycross.dbapi.HunspellImportSignals Class Reference

Container for Qt signals used by HunspellImportTask. More...

Inheritance diagram for pycross.dbapi.HunspellImportSignals:

Static Public Attributes

 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...
 

Detailed Description

Container for Qt signals used by HunspellImportTask.

Member Data Documentation

◆ 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
idint ID of task in the thread pool
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
countint 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
idint ID of task in the thread pool
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
countint 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
idint ID of task in the thread pool
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
messagestr the error message

◆ sigStart

pycross.dbapi.HunspellImportSignals.sigStart = QtCore.pyqtSignal(int, str, str)
static

Emitted before the import starts.

Parameters
idint ID of task in the thread pool
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr 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
idint ID of task in the thread pool
langstr short language name for the dictionary (e.g. 'en', 'de')
filepathstr full path to the downloaded dictionary (saved in pycross/assets/dic by default)
wordstr the word string, e.g. 'father'
posstr the word's part of speech, e.g. 'n' (=noun)
countint number of entries (words) written so far

The documentation for this class was generated from the following file: