-
-
Notifications
You must be signed in to change notification settings - Fork 101
Pad a Side
To apply padding to only one side of a widget in Pygubu Designer, separate the values of both sides with a space.
For example, if you have: padx 50 in Pygubu, it will apply a padx of 50 to both sides (left and right).
If you want to apply the value only to the left side of the widget and not the right, change padx to 50 0
Similarly, if you want to apply the padding to the right side of the widget, but not the left, change padx to 0 50
This applies to both pack and grid and the same technique can be used for pady as well.
If you have: pady 50 in Pygubu, it will apply the padding to both the top and the bottom of the widget.
If you want to apply pady 50 to the top only, set pady to 50 0
If you want to apply pady 50 to the bottom only, set pady 0 50
The value of zero (0) means you don't want to set a value for that side, but you could specify a different value for each side.
For example, if you wanted the right side to have more spacing than the left: padx 20 40
That will give the left side of the widget a padx of 20 and the right side of the widget a padx of 40.
- Requirements
- Installation
- Launch
- Screens:
- Step-by-Step Examples:
- Completed Examples
- Tips
- Additional widget sets
- Known Issues
- FAQ
- Troubleshooting:
- Communicating: