ExamVeda
Login
Home
11
What is the purpose of the Canvas widget in Tkinter?
Discuss
Answer & Solution
Answer: Option B
Solution:
The Canvas widget is used for drawing graphics, shapes, and images in Tkinter.
12
How do you create a dropdown menu in Tkinter?
Discuss
Answer & Solution
Answer: Option C
Solution:
The OptionMenu() function is used to create a dropdown menu in Tkinter.
13
What is the role of the Checkbutton widget in Tkinter?
Discuss
Answer & Solution
Answer: Option C
Solution:
The Checkbutton widget allows the user to select multiple options from a list.
14
What is the purpose of the Radiobutton widget in Tkinter?
Discuss
Answer & Solution
Answer: Option C
Solution:
The Radiobutton widget allows the user to select a single option from a list.
15
How do you create a message box in Tkinter to display alerts or messages?
Discuss
Answer & Solution
Answer: Option D
Solution:
The messagebox.showinfo() function is used to create a message box in Tkinter.
16
What is the purpose of the LabelFrame widget in Tkinter?
Discuss
Answer & Solution
Answer: Option B
Solution:
The LabelFrame widget is used to group related widgets together in Tkinter.
17
How do you set the title of a Tkinter window?
Discuss
Answer & Solution
Answer: Option B
Solution:
The window.title("New Title") method is used to set the title of a Tkinter window.
18
What is the purpose of the Menu widget in Tkinter?
Discuss
Answer & Solution
Answer: Option D
Solution:
The Menu widget is used to create dropdown menus and submenus in Tkinter.
19
How do you create a slider widget in Tkinter for selecting a value from a range?
Discuss
Answer & Solution
Answer: Option A
Solution:
The Scale() function is used to create a slider widget in Tkinter.
20
Which method is used to set the size of a widget in Tkinter?
Discuss
Answer & Solution
Answer: Option D
Solution:
The config() method is used to configure the properties of a widget, including its size.