Graphical User Interfaces (GUI)
Displays text, small images (icons), that represent objects such as directories, files of diff types, command buttons and drop-down menus
Terminal-Based version
GUI- Based version
Event-Driven Programming
User- generated events (e.g., mouse clicks) trigger ops in program to respond by pulling in inputs, processing them, and displaying results
- Event-driven software
- Event-driven programming
Event-Driven Programming Coding phase
tkinter
module that includes classes for windows and numerous types of window objects
breezypythongui
custom, open-source module
EasyFrame
Template of GUI program
from breezypythongui import EasyFrame
Other imports
class ApplicationName(EasyFrame):
The __init__ method definition
Definitions of event handling methods
def main():
ApplicationName().mainloop()
if __name__ == “__main__”:
main()
Syntax of Class and Method Definitions
subclass
Window attributes
Window layout
Methods in breezypythongui
What happens when a method in breezypythongui is called?