How slinky2026/pipboy works
Pypboy is a Pygame Pip-Boy-style interface. The main workflow takes keyboard or touch input, routes navigation to one of five screens, and draws the active screen over a themed frame. Those screens expose status and sensors, inventory, data, GPS-backed maps, and local radio playback. Shared app state and reusable widgets support the screens; GPS, sensor, weather, map-tile, and audio resources provide device or external data. The map excerpt is partial, and the README is empty, so unsampled subsystem details are not inferred.
Main entry points: core.py Pypboy Runtime · stats.py Status Screen · map.py Map Screen · inventory.py Inventory Screen
Components 19
Application
- Pypboy Runtime
src/pypboy/core.py
Pip-Boy Screens
- Status Screen
src/pypboy/screens/stats.py - Inventory Screen
src/pypboy/screens/inventory.py - Data Screen
src/pypboy/screens/data.py - Map Screen
src/pypboy/screens/map.py - Radio Screen
src/pypboy/screens/radio.py - Screen Base
src/pypboy/screens/base.py
Shared Data
- App State
src/pypboy/data.py
Input Handling
- Input Manager
src/pypboy/input/manager.py - Action Types
src/pypboy/input/actions.py
Device And Media
- GPS Reader
src/pypboy/gps_reader.py - Sensor Reader
src/pypboy/sensor_reader.py - Tile Disk Cache
cache/tiles - Radio Audio
assets/audio
Interface
- Theme Loader
src/pypboy/ui/theme.py - Display Widgets
src/pypboy/ui/widgets.py
Other components
- User
- Weather Service
- Map Tile Service
Connections 26
- User → Pypboy Runtime: operates
src/pypboy/core.py - Pypboy Runtime → Input Manager: processes input
src/pypboy/core.py - Input Manager → Action Types: queues actions
src/pypboy/input/manager.py - Pypboy Runtime → Action Types: routes actions
src/pypboy/core.py - Pypboy Runtime → Status Screen: dispatches events
src/pypboy/core.py - Pypboy Runtime → Inventory Screen: dispatches events
src/pypboy/core.py - Pypboy Runtime → Data Screen: dispatches events
src/pypboy/core.py - Pypboy Runtime → Map Screen: dispatches events
src/pypboy/core.py - Pypboy Runtime → Radio Screen: dispatches events
src/pypboy/core.py - Pypboy Runtime → App State: creates state
src/pypboy/core.py - Pypboy Runtime → Theme Loader: loads theme
src/pypboy/core.py - Inventory Screen → App State: reads inventory
src/pypboy/screens/inventory.py - Status Screen → App State: reads vitals
src/pypboy/screens/stats.py - Data Screen → App State: uses state
src/pypboy/screens/data.py - Map Screen → GPS Reader: reads coordinates
src/pypboy/screens/map.py - Status Screen → Sensor Reader: reads measurements
src/pypboy/screens/stats.py - Status Screen → Weather Service: fetches temperature
src/pypboy/screens/stats.py - Map Screen → Map Tile Service: requests tiles
src/pypboy/screens/map.py - Map Screen → Tile Disk Cache: reads and writes
src/pypboy/screens/map.py - Radio Screen → Radio Audio: loads tracks
src/pypboy/screens/radio.py - Inventory Screen → Display Widgets: renders list
src/pypboy/screens/inventory.py - Status Screen → Display Widgets: draws meters
src/pypboy/screens/stats.py - Inventory Screen → Screen Base: extends
src/pypboy/screens/inventory.py - Map Screen → Screen Base: extends
src/pypboy/screens/map.py - Radio Screen → Screen Base: extends
src/pypboy/screens/radio.py - Data Screen → Screen Base: extends
src/pypboy/screens/data.py