@@ -94,8 +94,6 @@ def __init__(
9494
9595 super (bitmap_label .Label , self ).__init__ (font , ** kwargs )
9696
97- print (f"before reset: { self ._text } " )
98-
9997 self ._text = "\n " .join (self .lines )
10098 self ._text = self ._replace_tabs (self ._text )
10199 self ._original_text = self ._text
@@ -107,7 +105,6 @@ def __init__(
107105 line_spacing = self ._line_spacing ,
108106 scale = self .scale ,
109107 )
110- print (f"after reset: { self ._text } " )
111108
112109 def _place_text (
113110 self ,
@@ -141,21 +138,18 @@ def _place_text(
141138 xposition = x_start # pylint: disable=used-before-assignment
142139
143140 y_start = yposition
144- # print(f"start loc {x_start}, {y_start}")
145141
146142 left = None
147143 right = x_start
148144 top = bottom = y_start
149145 line_spacing = self ._line_spacing
150146
151- # print(f"cur_line width: {cur_line_width}")
152147 for char in text :
153148 if char == "\n " : # newline
154149 cur_line_index += 1
155150 cur_line_width = self ._text_bounding_box (
156151 self .lines [cur_line_index ], self .font
157152 )[0 ]
158- # print(f"cur_line width: {cur_line_width}")
159153 if self .align == self .ALIGN_LEFT :
160154 x_start = original_xposition # starting x position (left margin)
161155 if self .align == self .ALIGN_CENTER :
@@ -259,7 +253,6 @@ def _reset_text(
259253 text = self ._text
260254
261255 self ._text = self ._replace_tabs (text )
262- print (f"inside reset_text text: { text } " )
263256
264257 # Check for empty string
265258 if (text == "" ) or (
@@ -317,7 +310,6 @@ def _reset_text(
317310 box_y = box_y + self ._padding_top + self ._padding_bottom
318311
319312 if self .dynamic_height :
320- print (f"dynamic height, box_y: { box_y } " )
321313 self ._height = box_y
322314
323315 # Create the Bitmap unless it can be reused
@@ -375,7 +367,6 @@ def _reset_text(
375367 tight_box_x ,
376368 tight_box_y ,
377369 )
378- print (f"end of reset_text bounding box: { self ._bounding_box } " )
379370
380371 if (
381372 scale is not None
0 commit comments