Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example on naming singnals in checkbox
class JobCollection:
@signal
def job_added(self, job):
""" signal sent whenever a job is added """
class SomethingElse:
def __init__(self, collection):
col.job_added.connect(on_job_added)
def on_job_added(self, job):
print("Job added:", job)
@kissiel

This comment has been minimized.

Copy link

@kissiel kissiel commented Feb 27, 2015

9: s/col/collection/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment