Lino Website

Documentation · Modules · adamo · Examples

jobs2.py

This example uses the work() function from jobs1.py and runs it in a GUI.

Source code:

from jobs1 import work

from lino.ui import console
from lino.forms import gui

if __name__ == "__main__":
    print "This example currently broken."
    if False:
        gui.parse_args()
        frm = gui.form("Demonstrating Job")
        frm.addButton("with").setHandler(work,True)
        frm.addButton("without").setHandler(work,False)
        frm.show()
    

Watch this demo by issuing the following command in the demo directory:

python jobs2.py

Invoke this script with different command-line options to get different output:

  python jobs2.py      (normal)
  python jobs2.py -v   (verbose)
  python jobs2.py -vv  (very verbose aka debug)
  python jobs2.py -q   (quiet)
  python jobs2.py -qq  (very quiet)

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