From 7fd4b2ca12040cb127c4a82360a77d7f3920263e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= <39929354+denizsafak@users.noreply.github.com> Date: Mon, 9 Oct 2023 07:47:37 +0300 Subject: [PATCH] Update HotspotAutoLogin.pyw --- HotspotAutoLogin.pyw | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/HotspotAutoLogin.pyw b/HotspotAutoLogin.pyw index 33607e8..22b822b 100644 --- a/HotspotAutoLogin.pyw +++ b/HotspotAutoLogin.pyw @@ -165,5 +165,15 @@ if __name__ == '__main__': tray_thread = threading.Thread(target=create_system_tray_icon) tray_thread.start() + # Initialize the tkinter GUI in the main thread + root = tk.Tk() + root.withdraw() # Hide the main tkinter window + + # Create a log dialog + log_dialog = tk.Tk() + log_dialog.title("Log Messages") + log_text = tk.Text(log_dialog) + log_text.pack() + # Start the network status checking in the main thread check_network_status()