Revert "OVERALL FIX"

This reverts commit c26ab25212.
This commit is contained in:
Klemek
2024-03-15 17:36:32 +01:00
parent 5847130478
commit 4e82f20a27
10 changed files with 863 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
import tkinter as tk
from tkinter import ttk
class InputPopup(tk.Toplevel):
def __init__(self, parent, *, title: str, message: str, initial_value: str = ""):
super().__init__(parent)
self.title(title)
self.value = None
label = ttk.Label(self, text=message)
label.pack()
self.entry = ttk.Entry(self)
self.entry.insert(0, initial_value)
self.entry.pack()
button = ttk.Button(self, text="Ok", command=self.cleanup)
button.pack()
parent.wait_window(self)
def cleanup(self):
self.value = self.entry.get()
self.destroy()