OVERALL FIX

This commit is contained in:
Klemek
2024-03-13 14:02:32 +01:00
parent d5a0f87f91
commit c26ab25212
10 changed files with 0 additions and 863 deletions
-26
View File
@@ -1,26 +0,0 @@
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()