Last active
August 3, 2020 18:32
-
-
Save Alee14/392efe3c154885eb6344440fafa5d56d to your computer and use it in GitHub Desktop.
FMPMEH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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