tkinter.Spinbox(fg)


Definition
Generate font graphic color.

Syntax
tkinter.Spinbox(fg="color name")
Spinbox(fg="color name")

Examples
The day of birth values are added in Spinbox.
from tkinter import*

master=Tk()
master.title("Day of Birth")

spinbox_day=Spinbox(master,fg="blue", font=12, from_=0, to=31)
spinbox_day.pack(side=LEFT)

spinbox_month=Spinbox(master, fg="blue", font=12, values=("Jan","Feb",
                                       "Mar", "Apr","May","Jun","Jul","Aug",
                                      "Sep", "Oct", "Nov","Dec"))
spinbox_month.pack(side=LEFT)

spinbox_year=Spinbox(master, fg="blue", font=12, from_=1900, to=2015)
spinbox_year.pack(side=LEFT)

master.mainloop()








Comments