[Dev] Chandler styles

Phillip J. Eby pje at telecommunity.com
Mon Feb 21 12:11:50 PST 2005


For what it's worth, PyProtocols' "dispatch" package supports doing 
CSS-like rules expressed in Python, and can include arbitrary tests like 
"if the status is important, the color is red".

It doesn't *parse* CSS, mind you, and its prioritization is based on 
logical implication rather than numerical priorities, but it basically does 
the same "find the most-specific rule that applies".  I'm doing a 
presentation on it at PyCon, if anybody's interested.


At 11:56 AM 2/21/05 -0800, John Anderson wrote:
>We did spend some time thinking about it -- and it didn't seem like such a 
>good fit given that we're building things out of wxWidgets and because of 
>the complexity of CSS.
>
>John
>
>Jeffrey Harris wrote:
>
>>Hi Folks,
>>
>>Have we thought about/can we think about using CSS to describe
>>Chandler's font size/background color styling?  Positioning styling
>>probably needs to stay in CPIA.
>>
>>I don't think wx's HTML widget supports CSS natively (I don't know if it
>>ever will), but even if we have to write or borrow a CSS parser it sure
>>would be nice to not create Yet Another Styling Language.



More information about the Dev mailing list