NEW
Font size
WorksheetsPython GUI
Total questions: 20
Worksheet time: 8mins
How do you create a Label widget in Tkinter?
What is the command to create a basic window in tkinter?
What is the function of the pack() method in Tkinter?
Organizing widgets in a grid
Organizing widgets in blocks before placing them in the parent widget
Placing widgets on specific positions in the window
Organizing the layout of multiple windows
What is the purpose of creating Frame widgets in a Tkinter application?
To add decorative images
To group related widgets or provide padding
To control the application flow
To set text color schemes
Which widget is used to display text or images that cannot be edited by the user in Tkinter?
Button
Entry
Text
Label
Which geometry manager is commonly used in Tkinter for organizing widgets?
Place
Grid
Pack
Layout
What is a widget in the context of graphical user interfaces (GUIs)?
A small furry creature that lives on the desktop.
An element or component that users can interact with to perform tasks or access information in a GUI application.
A tool used by developers to debug GUI code.
A virtual container for storing data in a GUI application.
Which widget is commonly used to trigger actions when clicked in Tkinter?
Entry
Label
Button
Frame
What is the purpose of the update_clock() function when creating a digital clock?
It sets the title of the Tkinter window to "Digital Clock".
It retrieves the current time and updates the text of the clock_label widget every second.
It creates a new Label widget named clock_label with a font size of 50.
It initializes the Tkinter event loop and starts the application.
Which is the correct way to use tkinter in python
program?
include tkinter *
import tkinter *
from tkinter import *
from tkinter include *
Which of the following function used to create window in
python tkinter.
window()
tk()
toolkit()
wd()
Which of the following attribute used to change the
background color of a Label widget in python tkinter
background
bg
fg
foreground
Choose the correct statement to display title.
window.title("My First Program")
window.title(My First Program)
window.title "My First Program"
title.window("My First Program")
what is the correct execution of the code as seen in the picture?
def clicked():
lbl.configure(text="Button was clicked !!")
def pindot(): lbl.configure(text="Button was clicked !!")
def clicked(): lbl.configurate(text="Button was clicked !!")
def clicked(): button.configure(text="Button was clicked !!")
what is the correct execution of the code as seen in the picture?
lbl = label(window, text="Hello")
lbl = Label(window, text="Hello")
lbl = Text(window, text="Hello")
lbl = txt(window, text="Hello")
what is the widget been programmed?
radiobutton
selectbox
combobox
checkbox
what is the widget been programmed?
radiobutton
button
combobox
checkbox
what is the widget been programmed?
message box
info message
alert box
message content
what is the correct code for the picture?
btn = Button(window, text="Click Me", bg="org", fg="rd")
btn = Button(window, text="Click Me", bg="blue", fg="red")
btn = Button(window, text="Click Me", bg="orange", fg="red")
btn = Button(window, text="Click Me", bg="red", fg="orange")
what is the widget been programmed?
Entry
Canvas
Relief Style
Bitmaps
