How can I replace the ‘w_06_l’ by a local variable or a tag ?
I would like to calculate the value “6” based upon the name of the component and then use it as a parameter in order to have the code to be generic ?
number = int("6") # string must be converted to integers for use with %d
comp = "w_%02d_l"%comp
event.source.fillPaint = system.gui.color("#FFBC00CF")
event.source.parent.parent.getComponent('floorLabels').getComponent(comp).visible = 1