@@ -250,10 +250,7 @@ def set_text_color(self, color, index=0):
250
250
if self ._text [index ]:
251
251
color = self .html_color_convert (color )
252
252
self ._text_color [index ] = color
253
- if isinstance (self ._text [index ], Group ):
254
- self ._text [index ][0 ].color = color
255
- else :
256
- self ._text [index ].color = color
253
+ self ._text [index ].color = color
257
254
258
255
def set_text (self , val , index = 0 ):
259
256
"""Display text, with indexing into our list of text boxes.
@@ -273,17 +270,12 @@ def set_text(self, val, index=0):
273
270
if self ._text [index ] is not None :
274
271
print ("Replacing text area with :" , string )
275
272
if len (string ) > 0 :
276
- label = Label (self ._text_font , text = string )
277
- label .color = self ._text_color [index ]
278
- if self ._text_scale [index ] > 1 :
279
- self ._text [index ] = Group (max_size = 1 , scale = self ._text_scale [index ])
280
- self ._text [index ].x = self ._text_position [index ][0 ]
281
- self ._text [index ].y = self ._text_position [index ][1 ]
282
- self ._text [index ].append (label )
283
- else :
284
- label .x = self ._text_position [index ][0 ]
285
- label .y = self ._text_position [index ][1 ]
286
- self ._text [index ] = label
273
+ self ._text [index ] = Label (
274
+ self ._text_font , text = string , scale = self ._text_scale [index ]
275
+ )
276
+ self ._text [index ].color = self ._text_color [index ]
277
+ self ._text [index ].x = self ._text_position [index ][0 ]
278
+ self ._text [index ].y = self ._text_position [index ][1 ]
287
279
elif index_in_splash is not None :
288
280
self ._text [index ] = None
289
281
0 commit comments