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)