Browse Source

Add the step width modifier in the progressbar

pull/76/head
Eugenio Parodi 3 years ago
parent
commit
4bf60b7600
  1. 1
      TermTk/TTkWidgets/progressbar.py

1
TermTk/TTkWidgets/progressbar.py

@ -159,6 +159,7 @@ class TTkProgressBar(TTkWidget):
rest = math.floor(virt_width - 8*full)
for y in range(height):
color_bar = color_bar.modParam(step=width)
bar = TTkString((blocks[8]*full)+blocks[rest], color_bar)
canvas.drawText(pos=(0, y), text=bar, width=width, color=color_bar)
if show_text:

Loading…
Cancel
Save