ghubstan 49404cebc5
Reorganize the python-examples module
- Use requirements.txt to install dependencies to local venv.
- Use setup.py to build/install example packages to local venv.
- Adjust reference-doc-builder to new Python pkg imports.
2022-03-17 12:44:28 -03:00

14 lines
514 B
Python

# From https://expobrain.net/2010/07/31/simple-event-dispatcher-in-python
from python_examples.bots.bisq_events.event import Event
class TradeEvent(Event):
"""
When subclassing Event class the only thing you must do is to define
a list of class level constants which defines the event types and the
string associated to them
"""
MUST_SEND_PAYMENT_STARTED_MSG_EVENT = 'MUST_SEND_PAYMENT_STARTED_MSG_EVENT'
MUST_SEND_PAYMENT_RECEIVED_MSG_EVENT = 'MUST_SEND_PAYMENT_RECEIVED_MSG_EVENT'