Gui basics
GUI Basics: Graphical User Interfaces¶
A GUI (Graphical User Interface) allows users to interact with software through visual elements like windows, buttons, and menus, instead of just typing text in a terminal.
Core GUI Components (Widgets)¶
- Window (Root): The main container that holds everything.
- Label: Displays static text or images.
- Button: Something the user can click to trigger an action.
- Entry (Input): A single-line text field for user input.
- Frame: A container used to group and organize other widgets.
- Canvas: A structured area for drawing shapes, images, or complex layouts.
The Event Loop¶
GUI applications don't just run and finish. They enter an Event Loop where the program waits for user actions (like clicks or key presses) and responds to them.
Industry Fact
While web and mobile apps are more common today, desktop GUIs are still essential for professional tools, games, and internal business software.