[1133] Refine Inheritence

This commit is contained in:
David Sangrey committed 2024-04-17 15:35:57 -04:00
1 parent dd5e3812a7
commit 9cd69a19e4
1 file changed
+2 -2
+2 -2
View File
@@ -67,7 +67,7 @@ class EntryMenu(ttk.Entry):
"""Extended entry widget that includes a context menu with Copy, Cut-and-Paste commands."""
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
ttk.Entry.__init__(self, *args, **kwargs)
self.menu = tk.Menu(self, tearoff=False)
self.menu.add_command(label="Copy", command=self.copy)
@@ -120,7 +120,7 @@ class EntryMenu(ttk.Entry):
pass
class Entry(EntryMenu or ttk.Entry): # type: ignore
class Entry(EntryMenu):
"""Custom ttk.Entry class to fix some display issues."""
# DEPRECATED: Migrate to EntryMenu. Will remove in 5.12 or later.