@@ -94,8 +94,6 @@ def __init__(
94
94
95
95
super (bitmap_label .Label , self ).__init__ (font , ** kwargs )
96
96
97
- print (f"before reset: { self ._text } " )
98
-
99
97
self ._text = "\n " .join (self .lines )
100
98
self ._text = self ._replace_tabs (self ._text )
101
99
self ._original_text = self ._text
@@ -107,7 +105,6 @@ def __init__(
107
105
line_spacing = self ._line_spacing ,
108
106
scale = self .scale ,
109
107
)
110
- print (f"after reset: { self ._text } " )
111
108
112
109
def _place_text (
113
110
self ,
@@ -141,21 +138,18 @@ def _place_text(
141
138
xposition = x_start # pylint: disable=used-before-assignment
142
139
143
140
y_start = yposition
144
- # print(f"start loc {x_start}, {y_start}")
145
141
146
142
left = None
147
143
right = x_start
148
144
top = bottom = y_start
149
145
line_spacing = self ._line_spacing
150
146
151
- # print(f"cur_line width: {cur_line_width}")
152
147
for char in text :
153
148
if char == "\n " : # newline
154
149
cur_line_index += 1
155
150
cur_line_width = self ._text_bounding_box (
156
151
self .lines [cur_line_index ], self .font
157
152
)[0 ]
158
- # print(f"cur_line width: {cur_line_width}")
159
153
if self .align == self .ALIGN_LEFT :
160
154
x_start = original_xposition # starting x position (left margin)
161
155
if self .align == self .ALIGN_CENTER :
@@ -259,7 +253,6 @@ def _reset_text(
259
253
text = self ._text
260
254
261
255
self ._text = self ._replace_tabs (text )
262
- print (f"inside reset_text text: { text } " )
263
256
264
257
# Check for empty string
265
258
if (text == "" ) or (
@@ -317,7 +310,6 @@ def _reset_text(
317
310
box_y = box_y + self ._padding_top + self ._padding_bottom
318
311
319
312
if self .dynamic_height :
320
- print (f"dynamic height, box_y: { box_y } " )
321
313
self ._height = box_y
322
314
323
315
# Create the Bitmap unless it can be reused
@@ -375,7 +367,6 @@ def _reset_text(
375
367
tight_box_x ,
376
368
tight_box_y ,
377
369
)
378
- print (f"end of reset_text bounding box: { self ._bounding_box } " )
379
370
380
371
if (
381
372
scale is not None
0 commit comments