How to stop the mainWindow while opened a new Window and get my Value
How to stop the mainWindow while opened a new Window and get my Value My problem is that i have an Main-Class with an button-click function, where if i click the button, the EntryBox will be opened and in the button-click function i want to create the folder too, but i dont know how to "stop" the mainWindow while the EntryBox-Window is open to get the value(Folder name). @BryanOakley Minimal, Complete, and Verifiable example: That's my msBox.py import tkinter as tk FolderName = "" class EntryBox: def __init__(self, Text): self.root = tk.Tk() self.textBox = tk.Entry(self.root) self.EBOKAY = tk.Button(self.root, text="Okay") self.EBOKAY.bind("<Button-1>", self.EBOKAY_click) self.EBLabel = tk.Label(self.root, text=Text) self.EBLabel.pack() self.textBox.pack() self.EBOKAY.pack() self.root.mainloop() def EBOKAY_click(self, event): global FolderName FolderName = self.textBox.get() self.root.dest...