Soumya-Kushwaha / SoundScape

Real Time Sound Visualizer
54 stars 80 forks source link

Update Waveform.py #129

Closed madhupashish closed 1 week ago

madhupashish commented 2 weeks ago

The code has been enhanced with several improvements for better readability, maintainability, and robustness. Constants and styles, such as font names and button styles, have been moved to the top of the script, allowing for easier modification and ensuring consistency throughout the code. Function names have been standardized, enhancing readability and making the code more intuitive. The layout definition has been refined, particularly the multiline element, which has been structured for improved readability. Event handling has been simplified by dynamically generating script names based on the event text, reducing redundancy and making the code more concise. Additionally, the robustness of the application has been increased by ensuring that the current visualizer process is properly closed before launching a new one. These enhancements collectively make the code more organized, easier to manage, and more reliable in its execution.

Soumya-Kushwaha commented 1 week ago

Please get issues assigned before generating a PR & follow the PR template @madhupashish