Tkinter Flashcards
➤ provides numerous widgets to build a GUI in Python. Each widget has its specific use, such as displaying text, capturing user input, or displaying choices in dropdowns and buttons.
➤ is Python’s standard library for creating graphical user interfaces (GUIs). It is widely used due to its simplicity, versatility, and cross-platform compatibility.
Tkinter
provides tools for adding windows, buttons, text fields, and other UI components.
Tkinter
➤ Tkinter provides a variety of widgets for GUIs, including labels, buttons, and entry fields.
Tkinter Widgets
Display static text in a windows
Label widget
A clickable button that triggers a command
Button widget
Used to capture a single line of text input from the user.
Entry widget
Displays an on/off switch that the user can toggle.
Checkbutton widget
Allows user to select one option from multiple choices.
Radio Button Widget
Displays a list of items from which the user can select.
Listbox widget
Adds vertical or horizontal scrolling capabilities to other widgets.
Scroll Bar widget
Creates a menu bar at the top of the window.
Menu Widget
Dropdown menu to select one of many options.
ComboBox widget
Allows user to select a
numeric value in a given range.
Scale widget
Creates a new top-level window.
Top Level Widget
Displays multi-line text, like a label but allows wrapping.
message widget
Dis la s a button that shows a menu when clicked.
Menubutton widget
Displays a visual representation of progress in a task.
Progressbar widget
Allows user to select from a range of values.
Spinbox widget
Used for entering and displaying multiple lines of text.
Text widget
Enables drawing shapes, images, and complex layouts.
Canvas wiget
Manages resizing of its child widgets in horizontal or vertical
direction.
Pinned window widget
Tkinter offers three main geometry managers for widget layout:
pack, grid, and place.
Stacks widgets vertically or horizontally.
- Pack:
Organizes widgets in a table-like structure.
- Grid:
Positions widgets at specific x, y coordinates.
- Place: