Commit graph

3 commits

Author SHA1 Message Date
Blake Ridgway
a75659fa30 feat: Add __init__.py files to mark directories as packages
This commit introduces `__init__.py` files to the `timelogix` and
`timelogix/ui` directories, enabling Python to recognize them as
packages.

- Added empty `__init__.py` files to `timelogix` and `timelogix/ui`.
2025-04-05 18:04:13 -05:00
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