Server-side events (SSE) namesto pollinga #14

This commit is contained in:
2026-03-27 21:03:46 +01:00
parent 8c18e3fa6b
commit f75a6f04dd
3 changed files with 63 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ import subprocess
import sys
import ctypes
import tkinter.messagebox as messagebox
from web.server import start_server_thread
from web.server import start_server_thread, notify_clients
import urllib.request
import tempfile
from db_schema import create_tables
@@ -476,6 +476,7 @@ class SongProjector:
self.song_info_label.lift()
else:
self.song_info_label.config(text="")
notify_clients()
# ------------------------------------------------------
# Navigacija po straneh
@@ -504,6 +505,7 @@ class SongProjector:
self.color_frame.config(bg="black", width=self.color_width, height=self.screen_height)
self.color_frame.place(relx=0.5, rely=0.5, anchor="center")
self.song_info_label.config(text="")
notify_clients()
# ------------------------------------------------------
# Iskanje po naslovu