Skip to content

Commit 0b0f775

Browse files
committed
Replace PySimpleGUI with FreeSimpleGUI
1 parent 4507ddb commit 0b0f775

7 files changed

Lines changed: 7 additions & 11 deletions

File tree

.dockerignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ src/.flatpak-builder
1818
.env
1919
settings.json
2020
settings.json.bak
21-
PySimpleGUI.py
22-
PySimpleGUIWx.py
23-
tempCodeRunnerFile.py
2421
test.*
2522
demo.py
2623
error.log

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ src/.flatpak-builder
1414
.env
1515
settings.json
1616
settings.json.bak
17-
PySimpleGUI.py
18-
PySimpleGUIWx.py
19-
tempCodeRunnerFile.py
2017
test.*
2118
demo.py
2219
error.log

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ git+https://github.com/elibroftw/pypresence.git
2525
git+https://github.com/andor-pierdelacabeza/PySimpleGUI-4-foss.git/
2626
git+https://github.com/yt-dlp/yt-dlp.git
2727
git+https://github.com/elibroftw/youtube-comment-downloader.git
28+
git+https://github.com/spyoungtech/FreeSimpleGUI/@db26fd15f2abec79fcd93d966c9677e1a3464753
2829
pyqrcode~=1.2.1
2930
pystray~=0.19.1
3031
requests~=2.28
3132
urllib3~=1.26.7
33+
FreeSimpleGUI
3234
waitress~=3.0
3335
wavinfo~=2.1
3436
scrapetube

src/gui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import PySimpleGUI as Sg
1+
import FreeSimpleGUI as Sg
22
import platform
33
from .views import *
44
import ctypes

src/gui/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import platform
44

55
import pyqrcode
6-
import PySimpleGUI as Sg
6+
import FreeSimpleGUI as Sg
77
from meta import FONT_NORMAL, State
88
from PIL import Image, ImageDraw
99

src/gui/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from datetime import datetime
44
from math import ceil, floor
55

6-
import PySimpleGUI as Sg
6+
import FreeSimpleGUI as Sg
77
from b64_images import (
88
CLEAR_QUEUE,
99
COPY_ICON,

src/music_caster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def activate_instance(port=2001, default_timeout=0.5, to_port=2004):
264264
from modules.resolution_switcher import fmt_res, get_all_resolutions, set_resolution, get_all_refresh_rates, get_initial_res, is_plugged_in, get_initial_dpi_scale
265265
get_initial_dpi_scale()
266266
from gui import MainWindow, MiniPlayerWindow, focus_window
267-
import PySimpleGUI as Sg
267+
import FreeSimpleGUI as Sg
268268
from modules.db import DatabaseConnection, init_db
269269

270270
# 0.5 seconds gone to 3rd party imports
@@ -3066,7 +3066,7 @@ def activate_gui(selected_tab=None, url_option='url_play'):
30663066
use_default_focus=False, keep_on_top=mini_mode and settings['mini_on_top'],
30673067
location=window_location, metadata=window_metadata, debugger_enabled=is_debug())
30683068
if State.using_tcl_theme:
3069-
Sg.PySimpleGUI.TOOLTIP_BACKGROUND_COLOR = settings['theme']['background']
3069+
Sg.TOOLTIP_BACKGROUND_COLOR = settings['theme']['background']
30703070
try:
30713071
if not State.theme_sourced:
30723072
# as per State.using_tcl_theme, sun_valley_tcl_path exists

0 commit comments

Comments
 (0)