Python 3.8 tkinter 8.6 Following code creates a child window, but the child is covered by the root window. Why isn't the Toplevel on top ? Tried all 3 geometry managers with no success. Even takefocus doesn't help. The child appears first and is covered by root. ''' from tkinter import *
root = Tk()
root.geometry("900x600")
root.title(" Root window with Toplevel as child")
achild = Toplevel(root, takefocus = True )
achild.geometry("300x200+300+200")
achild.title("This is window named achild")
def main() :
mainloop()
if __name__ == '__main__' :
main()