Hi Nick,
Thanks for the response.
Our solution thusfar has been the following code in a library:
“”"KleurRgb
def gvbKleurConstantenBasis( Zoeksleutel ):
"""
value = project.gvbConstanten.gvbKleurConstanten( Zoeksleutel )
system.gui.getParentWindow(event).getComponentForPath('Root Container').background = value
"""
Const = { 'KLEUR': 'RGBkleuren' } # 1e entry in dictionairy
“”"Vaste kleuren
Const[ ‘KLEUR_ZWART’ ] = ‘#000000’ # Wizcon
Const[ ‘KLEUR_DONKERGRIJS_TRANSPARANT’ ] = ‘48,57,60,50’
Const[ ‘KLEUR_DONKERGRIJS_TRANSPARANT2’ ] = ‘64,64,64,128’
Const[ ‘KLEUR_GRIJS_CBS’ ] = ‘128,128,128’ # Wizcon
Const[ ‘KLEUR_LICHTGRIJS’ ] = ‘192,192,192’ # Wizcon
Const[ ‘KLEUR_LICHTERGRIJS’ ] = ‘213,213,213’ # Wizcon
Const[ ‘KLEUR_KADERGRIJS’ ] = ‘150,150,150’ # Wizcon
....
“”"Vaste kleuren bedienknopppen (buttons)
Const[ ‘KLEUR_BUTTON_ACTIEF’ ] = ‘138,255,255’
# Zoeken in dictionairy met foutafhandeling
try:
Resultaat = Const[ Zoeksleutel ]
except KeyError:
print "ERROR: gvbKleurConstantenBasis(): '" + Zoeksleutel + "' bestaat niet!"
Resultaat = '#000000'
return Resultaat
Without resulting to timers etc. I wondered if like the transparancy, there is some color-string definition that would create a blinking color.
Also the use of the style customizers would indeed create blinking color on specified tag values, but then again this would not be centrally maintained.
With regards,
Martijn
P.S. Some of the coding/constants is/are in Dutch,I guess this doesn’t hinder an experienced programmer…