PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1#!/usr/bin/env python
 2
 3from circuits import Component
 4
 5class Bob(Component):
 6
 7    def started(self, *args):
 8        print("Hello I'm Bob!")
 9
10class Fred(Component):
11
12    def started(self, *args):
13        print("Hello I'm Fred!")
14
15(Bob() + Fred()).run()