/docs/source/tutorial/004.py
https://bitbucket.org/prologic/circuits/ · Python · 15 lines · 8 code · 6 blank · 1 comment · 0 complexity · 092ffeefa288302927abfddd5eb6ed6e MD5 · raw file
- #!/usr/bin/env python
- from circuits import Component
- class Bob(Component):
- def started(self, *args):
- print("Hello I'm Bob!")
- class Fred(Component):
- def started(self, *args):
- print("Hello I'm Fred!")
- (Bob() + Fred()).run()