From: Miroslav Lichvar Date: Thu, 3 Jul 2008 10:46:47 +0000 (+0200) Subject: add setColor description to SnackScreen docstring (Greg Swift) X-Git-Tag: r0-52-10~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da73a6e6e6412200cfbfbe3d251e0bd37bb1193a;p=thirdparty%2Fnewt.git add setColor description to SnackScreen docstring (Greg Swift) --- diff --git a/snack.py b/snack.py index 23fadcc..7e7cdc0 100644 --- a/snack.py +++ b/snack.py @@ -441,6 +441,11 @@ class SnackScreen: - suspendcallback(self,cb, data=None) : set callback. data=data to pass to cb. - openWindow(self,left, top, width, height, title): Open a window. - pushHelpLine(self,text): put help line on screen. Returns current help line if text=None + - setColor(self, colorset, fg, bg): Set foreground and background colors; + colorset = key from snack.colorsets, + fg & bg = english color names defined by S-Lang + (ref: S-Lang Library C Programmer's Guide section: + 8.4.4. Setting Character Attributes) """ def __init__(self): _snack.init()