From fb51cdcb13b82024c172ba0676f89c8677235d43 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 17 Jun 2001 13:43:34 +0000 Subject: [PATCH] Tighten the ListColors add task svn: r155 --- src/ListColors.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ListColors.py b/src/ListColors.py index 2b20391db..bc545fe67 100644 --- a/src/ListColors.py +++ b/src/ListColors.py @@ -54,8 +54,19 @@ class ColorList: else: self.clist.set_background(self.index,self.evenbg) self.clist.set_foreground(self.index,self.evenfg) - self.index = self.index + 1 + self.index = self.index + 1 def add_with_data(self,list,data): self.add(list) self.clist.set_row_data(self.index-1,data) + +def set_enable(val): + global enable + + if color_ok: + enable = val + else: + enable = 0 + +def get_enable(): + return enable