From: Andrew Lorimer Date: Sat, 22 May 2021 08:04:48 +0000 (+1000) Subject: temporarily disable settings - unstable X-Git-Tag: v0.0.3~1 X-Git-Url: https://git.lorimer.id.au/ppt-control.git/diff_plain/65306711f646fc3f500bd16e8f8802b39d511582 temporarily disable settings - unstable --- diff --git a/ppt_control/ppt_control.py b/ppt_control/ppt_control.py index 1f4cfde..4218f5c 100755 --- a/ppt_control/ppt_control.py +++ b/ppt_control/ppt_control.py @@ -430,6 +430,7 @@ def refresh_interval(): def refresh_status(): if interface_root is not None and interface_root.state == "normal": + logger.debug("Refreshing UI") if status_label is not None: status_label.config(text="PowerPoint status: " + ("not " if not STATE["connected"] else "") + "connected") if http_label is not None: @@ -545,8 +546,8 @@ class Interface(ttk.Frame): reset_http_button = ttk.Button(self, text="Restart", command=restart_http) reset_http_button.place(x=300, y=30) - reset_ws_button = ttk.Button(self, text="Restart", command=null_action) - reset_ws_button.place(x=300, y=50) + #reset_ws_button = ttk.Button(self, text="Restart", command=null_action) + #reset_ws_button.place(x=300, y=50) status_label = ttk.Label(self) status_label.place(x=10,y=10) @@ -568,7 +569,7 @@ def exit_action(icon): def refresh_menu(): icon.menu = (pystray.MenuItem("Status: " + "dis"*(not STATE["connected"]) + "connected", lambda: null_action(), enabled=False), pystray.MenuItem("Stop", lambda: exit_action(icon)), - pystray.MenuItem("Settings", lambda: open_settings()) + pystray.MenuItem("Settings", lambda: open_settings(), enabled=False) ) def show_icon():