Site icon Python GUI

This Is How To Pad Python Widgets One Side At A Time

This Is How To Pad Python Widgets One Side At A Time

In this tutorial (which doesn’t just apply to Windows development) you will be learning how to only pad one side of a widget at a time instead of the default two sides. Whenever we pad widgets, we use pady and padx, but by default we put padding on two sides of the widget. Pady places the padding above and below, the padx puts the padding to the left and to the bottom. In this tutorial, you will be shown how to use a tuple to define each side of the pad independently.

Why not download a free trial copy of RAD Studio Delphi today and try out some PythonGUI examples for yourself?

Exit mobile version