QuestionQ39

VerifiedGUI Programming

Which of the following set the button text font to 12-point italic Arial?

Explanation

Tkinter accepts a font tuple of (family, size, *styles); a positive size denotes points, and italic is a style. Widget options can be set after construction with config(), so button.config(font=('Arial', '12', 'italic')) validly applies the specified font. The constructor form would also work only if its Button(...) call were syntactically closed; the displayed constructor expression is missing that closing parenthesis.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!