Mercurial > fife-parpg
comparison engine/extensions/pychan/widgets.py @ 218:724f3a5f3e96
Added selection_color, and darkened the default for it a bit.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Thu, 19 Mar 2009 17:14:56 +0000 |
parents | e281223a03a6 |
children | 756b895e1dab |
comparison
equal
deleted
inserted
replaced
217:68ae8f4234ca | 218:724f3a5f3e96 |
---|---|
54 - max_size: Position: The maximal size this widget is allowed to have. This is enforced through the accessor methods | 54 - max_size: Position: The maximal size this widget is allowed to have. This is enforced through the accessor methods |
55 of the actual size attribute. | 55 of the actual size attribute. |
56 - base_color: Color | 56 - base_color: Color |
57 - background_color: Color | 57 - background_color: Color |
58 - foreground_color: Color | 58 - foreground_color: Color |
59 - selection_color: Color | |
59 - font: String: This should identify a font that was loaded via L{loadFonts} before. | 60 - font: String: This should identify a font that was loaded via L{loadFonts} before. |
60 - border_size: Integer: The size of the border in pixels. | 61 - border_size: Integer: The size of the border in pixels. |
61 - position_technique: This can be either "automatic" or "explicit" - only L{Window} has this set to "automatic" which | 62 - position_technique: This can be either "automatic" or "explicit" - only L{Window} has this set to "automatic" which |
62 results in new windows being centered on screen (for now). | 63 results in new windows being centered on screen (for now). |
63 If it is set to "explicit" the position attribute will not be touched. | 64 If it is set to "explicit" the position attribute will not be touched. |
82 | 83 |
83 """ | 84 """ |
84 | 85 |
85 ATTRIBUTES = [ Attr('name'), PointAttr('position'), | 86 ATTRIBUTES = [ Attr('name'), PointAttr('position'), |
86 PointAttr('min_size'), PointAttr('size'), PointAttr('max_size'), | 87 PointAttr('min_size'), PointAttr('size'), PointAttr('max_size'), |
87 ColorAttr('base_color'),ColorAttr('background_color'),ColorAttr('foreground_color'), | 88 ColorAttr('base_color'),ColorAttr('background_color'),ColorAttr('foreground_color'),ColorAttr('selection_color'), |
88 Attr('style'), Attr('font'),IntAttr('border_size') | 89 Attr('style'), Attr('font'),IntAttr('border_size') |
89 ] | 90 ] |
90 | 91 |
91 DEFAULT_NAME = '__unnamed__' | 92 DEFAULT_NAME = '__unnamed__' |
92 | 93 |