예제 #1
0
파일: snack.py 프로젝트: 274914765/python
 def setColor(self, colorset, fg, bg):
     if colorset in colorsets:
         return _snack.setcolor(colorsets[colorset], fg, bg)
     else:
        # assume colorset is an integer for the custom color set
        return _snack.setcolor(colorset, fg, bg)
예제 #2
0
 def setColor(self, colorset, fg, bg):
     if colorset in colorsets:
         return _snack.setcolor(colorsets[colorset], fg, bg)
     else:
        # assume colorset is an integer for the custom color set
        return _snack.setcolor(colorset, fg, bg)