I want to create independent window. each create window, when caller window close or destroy. so far is create window without problem. but console warning message that i dont know what is this.
Console warning
can't invoke "event" command: application has been destroyed while executing "event generate $w <>" (procedure "ttk::ThemeChanged" line 6) invoked from within "ttk::ThemeChanged"
import tkinter
class MainWindow(tkinter.Tk):
def __init__(self, condition):
super().__init__()
self.title("Main Window ")
self.geometry("640x360")
if (condition == 1):
DashboardWindow()
self.destroy()
class DashboardWindow(tkinter.Tk):
def __init__(self):
super().__init__()
self.title("Dashboard Window")
self.geometry("940x560")
MainWindow(1).mainloop()