/docs/source/tutorial/003.py

https://bitbucket.org/prologic/circuits/ · Python · 10 lines · 5 code · 4 blank · 1 comment · 0 complexity · ff037de6a75c4da643316556623d64a7 MD5 · raw file

  1. #!/usr/bin/env python
  2. from circuits import Component
  3. class MyComponent(Component):
  4. def started(self, *args):
  5. print("Hello World!")
  6. MyComponent().run()