One of the Hello.py is fixed. But there are two places still need to be fixed:
1. The Hello World! example in the home page of
http://circuitsframework.com might be the important one to fix.
2. The other one is circuits/docs/source/examples/hello.py
There is another one circuits/examples/hello.py. This one works, because it uses two events instead of one.
I think there is a simpler way to fix it. It needs only one event. Just move "raise SystemExit(0)" from the started handler to the hello handler like the one below
========= This one works. ====
from __future__ import print_function
from circuits import Component, Event
class hello(Event):
"""hello Event"""
class App(Component):
def hello(self):
print("Hello World!")
raise SystemExit(0)
def started(self, component):
self.fire(hello())
App().run()
================ End of file =======
It is only a very trivial change. But since it is the first example shown in the home page, it might be a good idea to fix it.
Thanks!