Your worker
method needs ‘self’ as a parameter, since it is a class method and not a function. Adding that should make it work fine.
More Related Contents:
- Python random.choice same output
- Python: read object from file in python
- How to use a variable inside a regular expression?
- Python Variable Declaration
- TypeError: ‘
- Local (?) variable referenced before assignment [duplicate]
- Purpose of calling function without brackets python
- How to deal with certificates using Selenium?
- PyQt4 Wait in thread for user input from GUI
- What’s the difference between __builtin__ and __builtins__?
- Python – difference between two strings
- No module named ‘pandas._libs.tslibs.timedeltas’ in PyInstaller
- How to draw a line with matplotlib?
- Search for a value in a nested dictionary python
- Pickle incompatibility of numpy arrays between Python 2 and 3
- Regular expression parsing a binary file?
- problems with pygame controller support
- Python 3 – Can pickle handle byte objects larger than 4GB?
- error installing nltk supporting packages : nltk.download()
- How can I add python to cmd in windows [closed]
- python pandas read_csv delimiter in column data
- Extract a subset of key-value pairs from dictionary?
- python 3 open() default encoding
- Bare asterisk in function parameters?
- How can I simulate 2.x’s tuple unpacking for lambda parameters, using 3.x?
- Pygame make sprite walk in given rotation
- How to reverse a dictionary (whose values are lists) in Python? [duplicate]
- Travel directory tree with limited recursion depth
- Sound generation / synthesis with python?
- Python 3 sqlite parameterized SQL-query