Tighten the ListColors add task

svn: r155
This commit is contained in:
Don Allingham 2001-06-17 13:43:34 +00:00
parent 2ab0ed773c
commit 24da1a6d67

View File

@ -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