Skip to content

Instantly share code, notes, and snippets.

@Alee14
Last active August 3, 2020 18:32
Show Gist options
  • Save Alee14/392efe3c154885eb6344440fafa5d56d to your computer and use it in GitHub Desktop.
Save Alee14/392efe3c154885eb6344440fafa5d56d to your computer and use it in GitHub Desktop.
FMPMEH
#This version just removes 90% of FMP's functionality
#Originally written by Squid Grill (https://github.com/Royce551)
from appJar import gui
from pygame import mixer
import os
app = gui("FRESHMusicPlayer (For Weebs)", "800x600")
mixer.init()
playing = False
background = "black"
foreground = "black"
app.setBg(background)
app.setFg(foreground)
app.setFont(size=16, family="Segoe UI", weight='bold')
def playthedamnmusic(file):
global playing
mixer.init()
mixer.music.load(file)
mixer.music.play()
def stopthedamnmusic():
mixer.music.stop()
def press(button):
global playing
global background
global foreground
if button == "Play":
try:
music = app.getEntry("Path of your Music")
playthedamnmusic(music)
playing = True
except:
return
elif button == "Stop":
stopthedamnmusic()
playing = False
app.addButtons(["Play", "Stop"], press)
app.addLabelEntry("Path of your Music")
app.go()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment