diff --git a/.gitignore b/.gitignore index 0e674ec..ac5b7cb 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ test.txt Data/Cache/pronunciation.xml upload performance.log Interface/New web-based UI.zip +verrsrc.h +icon.ico diff --git a/README.md b/README.md index 7237510..89fec0a 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ ________________________________________ ## _Credits_ * Special thanks to [@Lapy](https://twitter.com/Lapy05575948) for the help. * Special thanks to [@DEFAULTDNB](https://github.com/DEFAULTDNB) AKA [@KiiWii](https://twitter.com/DefaultDNB) for the Database -* Sound Effects from [Pixabay](https://pixabay.com/). ### _Testers_: * [@laz305](https://twitter.com/laz305) diff --git a/environment.py b/environment.py index c823ac8..7ee7bdd 100644 --- a/environment.py +++ b/environment.py @@ -5,7 +5,6 @@ html: class holds repeated html tags and styling for the UI constant: class holds constant vars. Only getters """ -import pygame import os, datetime from ftplib import FTP @@ -103,7 +102,6 @@ def __init__(self) -> None: self.logging = self.html.internal_log_msg("ps4", self.IP, 12, "font-weight:600; font-style:italic;") self.update_pref() - pygame.mixer.init() def get_window(self): return Common.window @@ -229,16 +227,6 @@ def set_user_pref(self, ip, port, font, i_path, d_path, hb): Common.userIPath = i_path Common.userDPath = d_path - def play_sound(self, location, loop=False) -> None: - try: - pygame.mixer.music.load(location) - if loop: - pygame.mixer.music.play(loops=-1) - else: - pygame.mixer.music.play() - except Exception as e: - self.logs("Cannot run music and sounds", str(e)) - def logs(self, description, Type): try: error_file = open("Logs.txt", "a") diff --git a/main.py b/main.py index 59137de..3982b81 100644 --- a/main.py +++ b/main.py @@ -8,7 +8,6 @@ app = QtWidgets.QApplication(sys.argv) screen_res = app.desktop().screenGeometry() env = Common() - env.play_sound(f"{env.pref_path}bgm/home.@OfficialAhmed0", True) env.set_screen_size(screen_res.width(), screen_res.height()) window = QtWidgets.QMainWindow() diff --git a/requirements.txt b/requirements.txt index 6252c47..7f0f620 100644 Binary files a/requirements.txt and b/requirements.txt differ