Mercurial > fife-parpg
comparison engine/extensions/pychan/widgets.py @ 81:0e39a20bdfb2
add selection color to widget class
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 18 Jul 2008 12:16:48 +0000 |
parents | 4a0efb7baf70 |
children | 9a1529f9625e |
comparison
equal
deleted
inserted
replaced
80:ccb65f566c8d | 81:0e39a20bdfb2 |
---|---|
586 if isinstance(color,type(())): | 586 if isinstance(color,type(())): |
587 color = fife.Color(*color) | 587 color = fife.Color(*color) |
588 self.real_widget.setForegroundColor(color) | 588 self.real_widget.setForegroundColor(color) |
589 foreground_color = property(_getForegroundColor,_setForegroundColor) | 589 foreground_color = property(_getForegroundColor,_setForegroundColor) |
590 | 590 |
591 def _getSelectionColor(self): return self.real_widget.getSelectionColor() | |
592 def _setSelectionColor(self,color): | |
593 if isinstance(color,type(())): | |
594 color = fife.Color(*color) | |
595 self.real_widget.setSelectionColor(color) | |
596 selection_color = property(_getSelectionColor,_setSelectionColor) | |
597 | |
591 def _getName(self): return self._name | 598 def _getName(self): return self._name |
592 def _setName(self,name): | 599 def _setName(self,name): |
593 from pychan import manager | 600 from pychan import manager |
594 self._name = name | 601 self._name = name |
595 # Do not change the event id while we are captured. | 602 # Do not change the event id while we are captured. |