I am looking to set the Label Widget width to an exact value - width=100
should be 100 pixels.
Is there a way to achieve this or should I be looking at using a different widget?
When using the TKinter Label, the width
and height
parameters refer to the text size - height=2
will set the label large enough for two lines of text, not 2 pixels as I would expect.
CodePudding user response:
I believe this post might help with your issue if you absolutely need a solution to do sizes pixel-perfect on your widget. There is however no easy way to do it straight on the widget itself.