From 9cd69a19e4b7a0cfeb89045044aec8a85d4dccd5 Mon Sep 17 00:00:00 2001 From: David Sangrey Date: Wed, 17 Apr 2024 15:35:57 -0400 Subject: [PATCH] [1133] Refine Inheritence --- myNotebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/myNotebook.py b/myNotebook.py index 2442acbe..070b28e1 100644 --- a/myNotebook.py +++ b/myNotebook.py @@ -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.