Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve tkinter app #5

Open
1 of 6 tasks
Agent-Hellboy opened this issue May 25, 2024 · 1 comment
Open
1 of 6 tasks

Improve tkinter app #5

Agent-Hellboy opened this issue May 25, 2024 · 1 comment

Comments

@Agent-Hellboy
Copy link
Collaborator

Agent-Hellboy commented May 25, 2024

TODOs

  • Use SVG gif, if it is available, or ship gif with various resolutions
  • Add a message before the window appears to mask unnecessary load time and 2 buttons to continue or stop loading the gif. Improve app.py #8
  • Try to make the text and button on the popup window transparent
  • Add a piece of soothing music for 1 min duration if the user sets the popup window time as more than 1 min repeat the music
  • Add logging inside the app.py and log it in the rsteye.log file
  • If the user doesn't choose to continue the breathing exercise, automatically start it after 20 seconds, but do not show the breathing practice window.
@Agent-Hellboy
Copy link
Collaborator Author

Agent-Hellboy commented Jun 10, 2024

Below is the proposed APP

sequenceDiagram
    participant User
    participant App
    participant Logger
    participant ImageLoader
    participant MusicPlayer

    User->>App: Clicks to load image
    App->>Logger: Log event "User clicked to load image"
    App->>MusicPlayer: Start background music
    MusicPlayer-->>App: Music playing in background
    App->>User: Shows popup with new message
    User->>Logger: Log event "User received popup message"
    User->>App: Reads breathing exercise message
    App->>ImageLoader: Requests image
    ImageLoader->>Logger: Log event "Image request received"
    ImageLoader->>App: Loads image
    App->>Logger: Log event "Image loaded successfully"
    App->>User: Displays image
    User->>Logger: Log event "User viewed image"
    User->>App: Closes GIF window
    App->>MusicPlayer: Stop background music
    MusicPlayer-->>App: Music stopped
    App->>Logger: Log event "GIF window closed, music stopped"
Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant