Commit graph

2 commits

Author SHA1 Message Date
Blake Ridgway
2c6c55a176 refactor: Create MainWindow class for main application windows
This commit refactors the main application window into a `MainWindow`
class.  This improves code organization and facilitates unit testing
of the UI.

- Created `MainWindow` class inheriting from `ctk.CTk`.
- Moved UI elements and logic into the `MainWindow` class.
- Modified methods to use the Database and PDFExporter classes.
- Implemented load_log_entries to refresh log entries
2025-04-05 18:03:18 -05:00
Blake Ridgway
cac5f9c116 refactor: Centralize UI component creation
This commit centralizes the creation of common UI components into
`ui/components.py`, promoting code reuse and consistency.

- Created functions for creating labels, entries, buttons, combos,
  and text boxes.
- Replaced direct widget creation in MainWindow with calls to
  these functions.
2025-04-05 18:02:49 -05:00