Examveda

How do you change the font of a widget's text in Tkinter?

A. font.set("NewFont")

B. widget.font("NewFont")

C. widget.configure(font="NewFont")

D. widget.set_font("NewFont")

Answer: Option C

Solution (By Examveda Team)

The widget.configure(font="NewFont") method is used to change the font of a widget's text in Tkinter.

This Question Belongs to Python Program >> GUI Programming With Python

Join The Discussion

Related Questions on GUI Programming with Python