Relief, sunken, and raised appearance of widgets
We can control the appearance of our Spinbox
widgets by a property that makes them look either in relief, sunken, or in a raised format.
Getting ready
We will add one more Spinbox
control to demonstrate the available appearances of widgets using the relief property of the Spinbox
control.
How to do it...
First, let's increase the borderwidth
to distinguish our second Spinbox
from the first Spinbox
.
# Adding a second Spinbox widget spin = Spinbox(monty, values=(0, 50, 100), width=5, bd=20, command=_spin) spin.grid(column=1, row=2)
Both of our Spinbox widgets above have the same relief style. The only difference ...
Get Python GUI Programming Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.