#!/usr/bin/env python

from circuits import Component, Event


class Hello(Event):
    """Hello Event"""


class App(Component):

    def hello(self):
        print("Hello World!")

    def started(self, component):
        self.fire(Hello())
        raise SystemExit(0)

App().run()

@@ -16,16 +16,44 @@
 python%0A%0A
+%22%22%22circuits Hello World%22%22%22%0A%0A
 from cir
@@ -172,16 +172,51 @@
 (self):%0A
+        %22%22%22Hello Event Handler%22%22%22%0A%0A
         
@@ -268,24 +268,215 @@
 component):%0A
+        %22%22%22Started Event Handler%0A%0A        This is fired internally when your application starts up and can be used to%0A        trigger events that only occur once during startup.%0A        %22%22%22%0A%0A
         self
@@ -489,16 +489,37 @@
 Hello())
+  # Fire Hello Event%0A
 %0A       
@@ -538,16 +538,45 @@
 mExit(0)
+  # Terminate the Application
 %0A%0AApp().

Document and comment hello example