A desktop application for managing panic attacks, built with Python, Tkinter, and MySQL. This app helps users calm down with breathing animations, relaxing sounds, and motivational messages, while also allowing logging of panic events.
- Start/resume panic support mode with breathing animation
- Pause panic mode at any time
- Plays relaxing sound during panic mode
- Motivational messages displayed dynamically
- Log panic attacks and personal notes
- View, save, and delete panic notes from MySQL
- Animated breathing circle to guide inhaling and exhaling
- Threaded operations for smooth UI
- Python 3
- Tkinter – GUI framework
- Threading – responsive animation and sound
- MySQL – store panic notes
- Subprocess – play sound files
- OS / Time / Random – supporting functionality
Clone the repository:
git clone https://github.com/ErkanSoftwareDeveloper/panic-attack-support.git
cd panic-attack-supportInstall dependencies:
pip install -r requirements.txtSet up MySQL database with the provided panic.sql script:
CREATE DATABASE IF NOT EXISTS panic_app
USE panic_app;
CREATE TABLE IF NOT EXISTS panic_logs (
id iNT AUTO_INCREMENT primary key,
datetime VARCHAR(50) NOT NULL,
note TEXT NOT NULL
);
SELECT * FROM panic_logs pl;Place a relaxing sound file named relaxing_sound.wav in the project folder.
Run the application:
python panic.py- Press Start / Resume to begin panic mode
- Press Pause to stop animations and sound
- Press Write Panic Attack Note to open the log window
- Add notes about your panic attacks and save them to the database
- Delete notes if needed from the log window
panic-attack-support/
├─ panic.py # Main application file
├─ relaxing_sound.wav # Relaxing sound for breathing exercises
├─ panic.sql # SQL script to create MySQL database & table
├─ .gitignore # Git ignored files
├─ README.md # Project documentation
└─ requirements.txt # Project dependencies
- Cross-platform sound playback support
- Customizable breathing patterns
- Save user preferences for messages and animation speed
- Dark/light theme for UI
- Packaging as executable (.exe / .app)
This project is intended for educational and personal use.
