comparison engine/extensions/pychan/__init__.py @ 171:456634bbc430

- small fix for pychan documentation (colors can also be quadruples)
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Wed, 21 Jan 2009 17:07:16 +0000
parents bb9902910067
children 3fe0e68f4269
comparison
equal deleted inserted replaced
170:f55979111ba1 171:456634bbc430
351 and added to the parent object. 351 and added to the parent object.
352 All attributes will then be parsed and then set in the following way: 352 All attributes will then be parsed and then set in the following way:
353 353
354 - position,size,min_size,max_size,margins - These are assumed to be comma separated tuples 354 - position,size,min_size,max_size,margins - These are assumed to be comma separated tuples
355 of integers. 355 of integers.
356 - foreground_color,base_color,background_color - These are assumed to be triples of comma 356 - foreground_color,base_color,background_color - These are assumed to be triples or quadruples of comma
357 separated integers. 357 separated integers. (triples: r,p,g; quadruples: r,p,g,a)
358 - opaque,border_size,padding - These are assumed to be simple integers. 358 - opaque,border_size,padding - These are assumed to be simple integers.
359 359
360 All other attributes are set verbatim as strings on the generated instance. 360 All other attributes are set verbatim as strings on the generated instance.
361 In case a Widget does not accept an attribute to be set or the attribute can not be parsed 361 In case a Widget does not accept an attribute to be set or the attribute can not be parsed
362 correctly, the function will raise a GuiXMLError. 362 correctly, the function will raise a GuiXMLError.