1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

[1133] Refine Inheritence

This commit is contained in:
David Sangrey 2024-04-17 15:35:57 -04:00
parent dd5e3812a7
commit 9cd69a19e4
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC

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.