From b76db815757ed4dfcbc3d0990e667747348a5118 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Jan 2026 20:33:05 +0000 Subject: [PATCH] Switch from PySimpleGUI to FreeSimpleGUI - Replace PySimpleGUI 5.0.8.3 with FreeSimpleGUI 5.1.1 - FreeSimpleGUI is a community fork without license requirements - PySimpleGUI 5.x requires paid license after trial period - Remove compatibility fallback code (no longer needed) - Update documentation to reflect FreeSimpleGUI usage Fixes: AttributeError 'module PySimpleGUI has no attribute theme' --- gui.py | 16 ++++------------ requirements.txt | 2 +- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/gui.py b/gui.py index 3967192..b94c600 100644 --- a/gui.py +++ b/gui.py @@ -1,8 +1,8 @@ """ Dashboard GUI for Eugen Bot -Live monitoring interface using PySimpleGUI +Live monitoring interface using FreeSimpleGUI """ -import PySimpleGUI as sg +import FreeSimpleGUI as sg import threading from datetime import datetime from queue import Queue @@ -19,11 +19,7 @@ class Dashboard: bot: Reference to the main bot instance """ self.bot = bot - # PySimpleGUI 5.x compatibility - try: - sg.theme('DarkBlue3') - except AttributeError: - sg.set_options(theme='DarkBlue3') + sg.theme('DarkBlue3') # Event queue for thread-safe updates self.event_queue = Queue() @@ -200,11 +196,7 @@ class SetupWizard: """Configuration wizard for first-time setup""" def __init__(self): - # PySimpleGUI 5.x compatibility - try: - sg.theme('DarkBlue3') - except AttributeError: - sg.set_options(theme='DarkBlue3') + sg.theme('DarkBlue3') def run(self): """ diff --git a/requirements.txt b/requirements.txt index 0f81a20..6f78d2a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ irc==20.1.0 python-dotenv==1.0.0 -PySimpleGUI==5.0.8.3 +FreeSimpleGUI==5.1.1 requests==2.31.0 httpx==0.25.0