How muad-sul/dadabase works
Dadabase is a small Pygame joke generator: a user opens the interface or clicks its button, the interface requests a joke, and the returned text is drawn on screen. The app also creates a category dropdown, which the README describes as nonfunctional. The shown code supports the joke-fetch and widget relationships; no separate category-filtering workflow is evidenced.
Main entry points: DadJokeUI.py Pygame interface · dropdownmenu.py Category dropdown · DadJoke.py Joke fetcher
Components 7
App interface
- Pygame interface
DadJokeUI.py
Joke retrieval
- Joke fetcher
DadJoke.py - icanhazdadjoke API
Dropdown widget
- Category dropdown
dropdownmenu.py
Other components
- User
- Pygame runtime
- pygame-widgets
Connections 8
- User → Pygame interface: uses
README.md - Pygame interface → Joke fetcher: requests joke
DadJokeUI.py - Joke fetcher → icanhazdadjoke API: GETs joke
DadJoke.py - Pygame interface → Category dropdown: creates dropdown
DadJokeUI.py - Category dropdown → pygame-widgets: constructs dropdown
dropdownmenu.py - Pygame interface → pygame-widgets: updates events
DadJokeUI.py - Pygame interface → Pygame runtime: draws interface
DadJokeUI.py - Category dropdown → Pygame runtime: creates display
dropdownmenu.py