It's not the same. When the size hint changes (for example becomes smaller) my code will resize the widget. Yours won't. One is dynamic, the other is static.