I got to know about adding the text to the progress bar as per this question:
Displaying percentage in ttk progressbar
It helps me but I need a few more adjustments to do to the answer.
I need the text (the percentage) to appear on the left side of the progressbar.
For this, I added
'side':'left'
to the layout format forHorizontal.TProgressbar.label
.
As under:
style.layout('text.Horizontal.TProgressbar',
[('Horizontal.Progressbar.trough',
{'children': [('Horizontal.Progressbar.pbar',
{'side': 'left', 'sticky': 'ns'})],
'sticky': 'nswe'}),
('Horizontal.Progressbar.label', {'side':'left','sticky': ''})])
However, this moves the text to extreme left. It overlaps the progressbar border and is not clearly readable.
- I need to adjust the font and font color of this text. How do we change that?