From 66bfbb94573efa35d717e550778d02b5a2ea1369 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 30 Sep 2009 14:41:15 +0000 Subject: added sample code for programmably saving a screen-shot image --- (limited to 'tamyblock.py') diff --git a/tamyblock.py b/tamyblock.py index 5643a9c..888588c 100644 --- a/tamyblock.py +++ b/tamyblock.py @@ -78,5 +78,8 @@ def myblock(lc,x): # reallocate current color # lc.tw.fgcolor = lc.tw.cm.alloc_color(r<<8,g<<8,b<<8) + # save a screen- image in the journal + + # lc.tw.activity._do_saveimage_cb(lc.tw.activity) return -- cgit v0.9.1