In this pull request, gridrc properties such as weight='0', are removed automatically.
Current Problem:
Redundant code is generated for grid rc properties if they have a value of '0' or a blank string.
To reproduce this problem, follow these steps:
Change the weight of any widget to 1
Change it back to 0
Generate the code and you will see that it will generate weight='0', but it's not needed at all.
The problem applies to:
minsize, pad, weight, uniform
Proposed Solution:
If the gridrc value of a widget changes to a zero (for minsize, pad, weight), remove the gridrc setting completely, because it's not needed if the value is zero.
If the uniform value is a blank string, remove the property completely, because it's not needed if the value is a blank string.
In this pull request, gridrc properties such as weight='0', are removed automatically.
Current Problem: Redundant code is generated for grid rc properties if they have a value of '0' or a blank string. To reproduce this problem, follow these steps:
weight='0'
, but it's not needed at all.The problem applies to: minsize, pad, weight, uniform
Proposed Solution: If the gridrc value of a widget changes to a zero (for minsize, pad, weight), remove the gridrc setting completely, because it's not needed if the value is zero.
If the uniform value is a blank string, remove the property completely, because it's not needed if the value is a blank string.