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

Added NO_WINDOW flag #647

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

creativegamer03
Copy link

Added NO_WINDOW flag for hiding the console windows that would pop up when calling AudioSegment.from_file(). Great for GUI making as it would run silently without any console windows showing up suddenly.

It is disabled by default. To enable it, simply set the environment variable PYDUB_NO_WINDOW with a value of "1".

import os
os.environ['PYDUB_NO_WINDOW'] = '1'

Added NO_WINDOW flag to hide console windows when calling AudioSegment.from_file().
Added NO_WINDOW flag to hide console windows when calling AudioSegment.from_file().
Added an initiation of environment variable for the NO_WINDOW flag.
Match-case statements are for Python 3.10+. Replaced with classic if-else statements to support older versions of Python.
Match-case statements are for Python 3.10+. Replaced with classic if-else statements to support older versions of Python.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant