comparison gamelib/scenewidgets.py @ 533:42742a62f9c3

More pep8 cleanups
author Neil Muller <neil@dip.sun.ac.za>
date Sat, 11 Feb 2012 12:00:15 +0200
parents 821b322e903b
children
comparison
equal deleted inserted replaced
532:02cf5537d74e 533:42742a62f9c3
134 def __init__(self, prefix, number, description, areas): 134 def __init__(self, prefix, number, description, areas):
135 super(GenericDescThing, self).__init__() 135 super(GenericDescThing, self).__init__()
136 self.description = description 136 self.description = description
137 self.name = '%s.%s' % (prefix, number) 137 self.name = '%s.%s' % (prefix, number)
138 self.interacts = { 138 self.interacts = {
139 'description' : InteractRectUnion(areas) 139 'description': InteractRectUnion(areas)
140 } 140 }
141 if DEBUG: 141 if DEBUG:
142 # Individual colors to make debugging easier 142 # Individual colors to make debugging easier
143 self._interact_hilight_color = Color(THECOLORS.keys()[number]) 143 self._interact_hilight_color = Color(THECOLORS.keys()[number])
144 144
145 def get_description(self): 145 def get_description(self):
146 return self.description 146 return self.description
147 147
148 def is_interactive(self, tool=None): 148 def is_interactive(self, tool=None):
149 return False 149 return False
150