mxvish / bgm-player

GUI bgm player in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bgm-player

GUI bgm player in python

Contents

Usage

How to open this app when opening terminal

Usage

  1. Install requirements.
  • For mac, ubuntu, and mx linux(a debian based distro)

    mpg321 python tkinter
  • For fedora, and arch

    mpg123 python tkinter
  1. Download necesarry mp3 files and bgm.py (for macOS download bgm_mac.py)

  2. Put all of them in the same directory.

  3. Edit audio file names in

    first_BGM = threading.Thread(target=play_bgm, args=('BGM_1_金庫解錠まで.mp3',))
    second_BGM = threading.Thread(target=next_bgm, args=('BGM_2_爆弾解除.mp3',))
    third_BGM = threading.Thread(target=next_bgm, args=('BGM_3_ゲームクリア.mp3',))

    of bgm.py (or bgm_mac.py) to your audio file names.

  4. (For Fedora, or Arch)

    Delete #(comment out) in play_bgm() and stop_bgm() and then add # to the another line in the same method.

  5. (For Ubuntu)

    Delete #(comment out) in next_bgm() and stop_button_clicked() and then add # to the another line begins with sp.call in the same method.

  6. Unmute the speaker.

  7. Run the following command on terminal.

  • For Linux
python3 bgm.py
  • For macOS
python3 bgm_mac.py

How to open this app when opening terminal

  1. Run the following command on terminal.
  • For Linux
echo 'python3 ~/bgm.py' >> ~/.bashrc
  • For macOS
echo 'python3 ~/bgm_mac.py' >> ~/.zshrc

Note.

  • You may need to change this command according to the default shell.
  • If the command above not working, check your default shell by executing the following command on terminal.
echo $SHELL

About

GUI bgm player in python

License:MIT License


Languages

Language:Python 100.0%