backgroundand with font that' very different from what we've seen so far in factthis script customizes the label in number of wayscolor by setting the bg option of the label widget hereits background is displayed in blackthe fg option similarly changes the foreground (textcolor of the widget to yellow these color options work on most tkinter widgets and accept either simple color name ( 'blue'or hexadecimal string most of the color names you are familiar with are supported (unless you happen to work for crayolayou can also pass hexadecimal color identifier string to these options to be more specificthey start with and name color by its redgreenand blue saturationswith an equal number of bits in the string for each for instance'#ff specifies eight bits per color and defines pure red"fmeans four " bits in hexadecimal we'll come back to this hex form when we meet the color selection dialog later in this size the label is given preset size in lines high and characters wide by setting its height and width attributes you can use this setting to make the widget larger than the tkinter geometry manager would by default font this script specifies custom font for the label' text by setting the label' font attribute to three-item tuple giving the font familysizeand style (heretimes -pointand boldfont style can be normalboldromanitalicunderlineover strikeor combinations of these ( "bold italic"tkinter guarantees that timescourierand helvetica font family names exist on all platformsbut others may worktoo ( system gives the system font on windowsfont settings like this work on all widgets with textsuch as labelsbuttonsentry fieldslistboxesand text (the latter of which can even display more than one font at once with "tags"the font option still accepts older -windows-style font indicators--long strings with dashes and stars--but the newer tuple font indicator form is more platform independent configuring widget appearance