@@ -91,10 +91,10 @@ def __init__(self, font, **kwargs):
91
91
self .local_group
92
92
) # the local_group will always stay in the self Group
93
93
94
- self .tab_replacement = kwargs .get ("tab_replacement" , (4 , " " ))
95
- self .tab_text = self .tab_replacement [1 ] * self .tab_replacement [0 ]
94
+ self ._tab_replacement = kwargs .get ("tab_replacement" , (4 , " " ))
95
+ self ._tab_text = self ._tab_replacement [1 ] * self ._tab_replacement [0 ]
96
96
text = kwargs .get ("text" , "" )
97
- self ._text = self .tab_text .join (text .split ("\t " ))
97
+ self ._text = self ._tab_text .join (text .split ("\t " ))
98
98
99
99
# Create the two-color palette
100
100
@@ -171,14 +171,14 @@ def _reset_text(
171
171
if base_alignment is not None :
172
172
self .base_alignment = base_alignment
173
173
if tab_replacement is not None :
174
- self .tab_replacement = tab_replacement
174
+ self ._tab_replacement = tab_replacement
175
175
176
176
# if text is not provided as a parameter (text is None), use the previous value.
177
177
if (text is None ) and self ._save_text :
178
178
text = self ._text
179
179
180
180
if self ._save_text : # text string will be saved
181
- self ._text = self .tab_text .join (text .split ("\t " ))
181
+ self ._text = self ._tab_text .join (text .split ("\t " ))
182
182
else :
183
183
self ._text = None # save a None value since text string is not saved
184
184
@@ -552,5 +552,5 @@ def _set_font(self, new_font):
552
552
raise RuntimeError ("font is immutable when save_text is False" )
553
553
554
554
def _set_text (self , new_text , scale ):
555
- new_text = self .tab_text .join (new_text .split ("\t " ))
555
+ new_text = self ._tab_text .join (new_text .split ("\t " ))
556
556
self ._reset_text (text = new_text , scale = self .scale )
0 commit comments