Created
February 27, 2015 12:38
-
-
Save zyga/5b07b09d63af12617ce1 to your computer and use it in GitHub Desktop.
Example on naming singnals in checkbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
9: s/col/collection/