Lino Website

Documentation · Modules · adamo · Examples

appl1.py

It does the same as reports1.py, but implemented as an Application.

Source code:

from lino.console.application import Application

class Hello(Application):
    name="Hello"
    author="Luc Saffre"

    def run(self):
        print "Hello, world!"
                 

if __name__ == '__main__':
    Hello().main()

Output:

Hello, world!

Copyright 2001-2007 Luc Saffre.
http://lino.saffre-rumma.ee
Generated 2007-06-07 16:23:41