Skip to content

Commit

Permalink
Clean, add inner README
Browse files Browse the repository at this point in the history
  • Loading branch information
jake158 committed Apr 4, 2024
1 parent 46940ba commit 33b7da2
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions pomodorodiscord/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

## Structure

- `run.py`: The main entry point.
- `src/`: The main package directory.
- `app.py`: Defines the main window and tab view, into which the three visible frames are packed.
- `utils.py`: Loading and saving data, configuration.
- `frames/`:
- `pomodoro_frame.py`: Entire timer functionality + storing data + communicating with Rich Presence.
- `settings_frame.py`: Updates config.
- `stats_frame.py`: Displays stats and graphs.
- `reusable/`: Reusable UI components.
- `entry_frame.py`: For settings_frame.py, where you put in custom durations for the pomodoro.
- `statistic_display.py`: For stats_frame.py.
- `logic/`: Logic separate from customtkinter.
- `richpresence.py`: The Discord Rich Presence integration - editable, but if you change function args go to pomodoro_frame.py update_rpc.
- `graphs.py`: matplotlib plots using data collected.
- `sounds/`: Beep.
- `themes/`: Responsible for all colors in the GUI. Theme is loaded on launch in run.py.

## File Dependencies

- `run.py` imports and uses `src/app.py`.
- `src/app.py` imports and uses `src/frames/*` and `src/utils.py`.
- `src/frames/pomodoro_frame.py` imports and uses `src/utils.py` and `src/logic/richpresence.py`.
- `src/frames/settings_frame.py` imports and uses `src/components/entry_frame.py` and `src/utils.py`.
- `src/frames/stats_frame.py` imports and uses `src/components/statistic_display.py`, `src/utils.py`, and `src/logic/graphs.py`.

## When running make sure you're in pomodoro-discord/pomodorodiscord.
Empty file added pomodorodiscord/src/__init__.py
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion pomodorodiscord/src/frames/settings_frame.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import customtkinter as ctk
from src.components.entry_frame import EntryFrame
from src.reusable.entry_frame import EntryFrame
from src.utils import load_config, save_config, reload_app, beep, DEF_POMODORO_MINS, DEF_SB_MINS, DEF_LB_MINS, DEF_SB_BEFORE_L


Expand Down
2 changes: 1 addition & 1 deletion pomodorodiscord/src/frames/stats_frame.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import customtkinter as ctk
from datetime import datetime
from src.components.statistic_display import StatisticDisplay
from src.reusable.statistic_display import StatisticDisplay
from src.utils import load_data
from src.logic.graphs import graph_pomodoro_sessions, graph_hours_studied

Expand Down
Empty file.
Empty file.
File renamed without changes.

0 comments on commit 33b7da2

Please sign in to comment.