Skip to content

Instantly share code, notes, and snippets.

@zyga
Created February 27, 2015 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zyga/5b07b09d63af12617ce1 to your computer and use it in GitHub Desktop.
Save zyga/5b07b09d63af12617ce1 to your computer and use it in GitHub Desktop.
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
Copy link

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