python - Difference between "fill" and "expand" options for tkinter pack method -
I know this is a trivial question, but I am new to Python, and I just have to go to taginer < Code> module I have actually seen everywhere about it, and I am unable to find satisfactory answers I found the following:
fill option: fix it Does that use more space or keep the "self" dimension. Expand Option: This is related to the detail of the parent widget. fill and the extension , but in 2 or 3 cases, the same output has achieved more or less, which I have this question that any help would be appreciated in this regard. thank you in advanced!
to:
Fill out options Tells to the manager that the widget wants that he wants to fill the entire space given to him. Control the way the value is filled; Both mean that the widget should expand both horizontally and vertically, X means that it should only expand horizontally and Y This means that it should only be expanded vertically.
The Extended option tells the manager to specify an additional box in the widget box. If the packet widget is maximized to catch all the pack widgets, then any more space will be distributed among all the widgets that have the expand option on a zero-zero value Is set up.
Then Fill indicates the widget that is available for the number specified, expand to any master The place that is not asking for any widget is assigned and it is distributed in all widgets, which has zero-zero extension value.
The difference becomes obvious when you run this example:
You can see that the label with the extension = 1 has more space available for it Is assigned in the form, but only kept in the specified direction, Y. label f br = vaccine. Both is spread in both directions, but there is less space available in it.
Comments
Post a Comment