Server-side events (SSE) namesto pollinga #14
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user