@@ -91,10 +91,10 @@ def __init__(self, font, **kwargs):
9191 self .local_group
9292 ) # the local_group will always stay in the self Group
9393
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 ]
9696 text = kwargs .get ("text" , "" )
97- self ._text = self .tab_text .join (text .split ("\t " ))
97+ self ._text = self ._tab_text .join (text .split ("\t " ))
9898
9999 # Create the two-color palette
100100
@@ -171,14 +171,14 @@ def _reset_text(
171171 if base_alignment is not None :
172172 self .base_alignment = base_alignment
173173 if tab_replacement is not None :
174- self .tab_replacement = tab_replacement
174+ self ._tab_replacement = tab_replacement
175175
176176 # if text is not provided as a parameter (text is None), use the previous value.
177177 if (text is None ) and self ._save_text :
178178 text = self ._text
179179
180180 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 " ))
182182 else :
183183 self ._text = None # save a None value since text string is not saved
184184
@@ -552,5 +552,5 @@ def _set_font(self, new_font):
552552 raise RuntimeError ("font is immutable when save_text is False" )
553553
554554 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 " ))
556556 self ._reset_text (text = new_text , scale = self .scale )
0 commit comments