Professional Documents
Culture Documents
Output:
Observation:
This code snippet demonstrates the creation of a basic graphical user
interface (GUI) using the "breezypythongui" library. It defines a class,
SampleGUI, which inherits from EasyFrame and initializes a GUI window
with the title "My First GUI" and dimensions of 300x150 pixels.
Task 2 (10 points):
Source Code:
Output:
Observation:
This code snippet uses the
"breezypythongui" library to create a
basic GUI. It customizes the GUI
window's title, size, non-resizability,
and background color within the
`SampleGUI` class constructor. The
code then launches the GUI, allowing
user interaction, serving as an
illustrative example of configuring GUI
properties with the library.
Task 3 (10 points):
Output:
Output:
Observation:
This code creates a simple GUI using
the BreezyPythonGUI library that
displays an image of a yellow car and a
text label with blue text. It demonstrates
the use of an image file ("car.gif"),
custom font settings, and label positioning within the GUI window. The GUI
is not resizable, and the image and text are displayed in specific cells with
"NSEW" sticky properties for alignment.
Task 5 (10 points):
Source Code:
Output: