WorksheetsPy Tkinter
Total questions: 10
Worksheet time: 6mins
Which of the following are valid Tkinter widgets? Select all that apply.
WebBrowser
Button
ColorPicker
Entry
Label
from tkinter import *
In the above code * denotes
selected modules
any specific module
all the modules of tkinter library
root.mainloop()
method on the main window which we execute when we want to run our application
loops forever
waits for events until the user exits the program
All the options
button1 = Button(root, text="Hello", command=xyz);
Select all the right explanation for the above line
text represents the name on the button
xyz is the name of the function
text represents the function to be called onclick of button
command represents the action to be performed on button click
__________ is an element of GUI.
Widget
Application
Tkinter
GUI
It is not possible to set the title of the window after creating it
True
False
What extension must you add to the end of a file when saving?
.xls
.pynb
.csv
.py
window.geometry("300x200")
300 is the height and 200 is the width
200 is the height and 300 is the width
Tkinter
the rules that determine how code must be written in order for it to work properly
a Python module that lets you draw shapes by moving a robotic turtle across the screen
The GUI module that Python uses
a series of characters. Strings can contain numbers, letters, or symbols and will have '' around them
Choose the options that are right about Widget
[You can choose all the correct answers]
A part of Tkinter GUI that performs a specific function such as a button or menu
errors caused by incorrect punctuation, spelling and grammar. (e.g. colour instead of color)
a place to store data that can change in a program such as the player's score, health or time. A variable has a name and a value
a universal code used by computers to represent symbols and text characters (e.g. an emoji)
