[ create a new paste ] login | about

Link: http://codepad.org/mpMwlWQT    [ raw code | fork ]

Python, pasted on Mar 10:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python

from circuits import Component, Event


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


class App(Component):

    channel = "app"

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

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

(App() + App(channel="app2")).run()


Create a new paste based on this one


Comments: