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

Crossword generation thread class. More...

Inheritance diagram for pycross.gui.GenThread:
pycross.utils.utils.QThreadStump

Public Member Functions

def __init__ (self, on_gen_timeout=None, on_gen_stopped=None, on_gen_validate=None, on_gen_progress=None, on_start=None, on_finish=None, on_run=None, on_error=None)
 Initializes signals binding them to callbacks passed to constructor. More...
 
- Public Member Functions inherited from pycross.utils.utils.QThreadStump
def __init__ (self, default_priority=QtCore.QThread.NormalPriority, on_start=None, on_finish=None, on_run=None, on_error=None, start_signal=None, stop_signal=None, free_on_finish=False, start_now=False, can_terminate=True)
 Constructor. More...
 
def __del__ (self)
 Destructor: waits for the thread to complete. More...
 
def init (self, default_priority=QtCore.QThread.NormalPriority, on_start=None, on_finish=None, on_run=None, on_error=None, start_signal=None, stop_signal=None, free_on_finish=False, can_terminate=True)
 Initializes signals binding them to callbacks and other members. More...
 
def lock (self)
 Locks the internal mutex to preclude data racing. More...
 
def unlock (self)
 Releases the mutex lock. More...
 
def run (self)
 Executes the worker function pointed to by QThreadStump::on_run. More...
 

Static Public Attributes

 sig_timeout = QtCore.pyqtSignal(float)
 QtCore.pyqtSignal Timeout signal More...
 
 sig_stopped = QtCore.pyqtSignal()
 QtCore.pyqtSignal Interrupt / stop signal More...
 
 sig_validate = QtCore.pyqtSignal('PyQt_PyObject')
 QtCore.pyqtSignal Crossword word validation signal More...
 
 sig_progress = QtCore.pyqtSignal('PyQt_PyObject', int, int)
 QtCore.pyqtSignal On-progress (generation) signal More...
 
- Static Public Attributes inherited from pycross.utils.utils.QThreadStump
 sig_error = QtCore.pyqtSignal(QtCore.QThread, str)
 Error signal (args are: instance of this thread and the error message) More...
 

Additional Inherited Members

- Public Attributes inherited from pycross.utils.utils.QThreadStump
 default_priority
 int thread default priority (default = normal) More...
 
 on_run
 callable callback function for the main operation More...
 
 mutex
 QtCore.QMutex mutex lock used by QThreadStump::lock() and QThreadStump::unlock() More...
 

Detailed Description

Crossword generation thread class.

Constructor & Destructor Documentation

◆ __init__()

def pycross.gui.GenThread.__init__ (   self,
  on_gen_timeout = None,
  on_gen_stopped = None,
  on_gen_validate = None,
  on_gen_progress = None,
  on_start = None,
  on_finish = None,
  on_run = None,
  on_error = None 
)

Initializes signals binding them to callbacks passed to constructor.

Member Data Documentation

◆ sig_progress

pycross.gui.GenThread.sig_progress = QtCore.pyqtSignal('PyQt_PyObject', int, int)
static

QtCore.pyqtSignal On-progress (generation) signal

◆ sig_stopped

pycross.gui.GenThread.sig_stopped = QtCore.pyqtSignal()
static

QtCore.pyqtSignal Interrupt / stop signal

◆ sig_timeout

pycross.gui.GenThread.sig_timeout = QtCore.pyqtSignal(float)
static

QtCore.pyqtSignal Timeout signal

◆ sig_validate

pycross.gui.GenThread.sig_validate = QtCore.pyqtSignal('PyQt_PyObject')
static

QtCore.pyqtSignal Crossword word validation signal


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