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:
parent
dd5e3812a7
commit
9cd69a19e4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user