Butler is a very simple application for storing a wine enthusiast's notes on the wines they have previously tasted.
Package src.butler
contains classes that represent the
problem domain: wines and users and also a graphical user interface
for the Butler program.
You will first encounter this program very early in the course. Please note that you do not yet need to understand all the specifics of how the whole program works, especially the user interface. All things in good time.
The user interface makes use of two image files bottle.gif
and bottle_face.gif
.
The class ButlerGUI
serves as the starting point for
the application. It contains, in addition to the class, a command which
will start up the user interface.
You can also experiment with the various classes of the program individually in terminal window.
An example view of the GUI:
get_tasted_wines
in class
User
returns a "live" reference to a
list of wines. Though this works here, it is a less
than optimal solution, as will be shown later during
the course. (If you didn't understand any of the above,
don't worry, you will later.)