Inital working version

This commit is contained in:
2025-05-18 22:10:14 +12:00
parent 9d35fb5002
commit 910c225542
2 changed files with 37 additions and 1 deletions

View File

@@ -6,13 +6,15 @@ from async_tkinter_loop import async_handler, async_mainloop
from networking import send_to_server
import color_utils
bg_color="#2e2e2e"
class App:
def __init__(self) -> None:
self.root = tk.Tk()
self.root.attributes('-fullscreen', True)
# List of servers (IP, Port)
self.servers = [("192.168.0.206", 80), ("192.168.0.208", 80)]
self.servers = [("192.168.0.208", 80),("192.168.0.201", 80), ("192.168.0.202", 80), ("192.168.0.203", 80), ("192.168.0.206", 80)]
# Create Notebook for tabs
self.notebook = ttk.Notebook(self.root)
@@ -25,6 +27,7 @@ class App:
self.notebook.add(tab, text=f"{server[0]}:{server[1]}")
self.create_sliders(tab)
self.tabs[server] = tab
#self.root.configure(bg=bg_color)
async_mainloop(self.root)