From a633be958eab8fb09c8b6cc07cf7d2170b87a47d Mon Sep 17 00:00:00 2001 From: Bruno Marques Date: Mon, 22 Jul 2024 10:32:25 +0100 Subject: [PATCH] whoops --- myNotebook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/myNotebook.py b/myNotebook.py index 3cee0b6d93..f740e11f04 100644 --- a/myNotebook.py +++ b/myNotebook.py @@ -121,9 +121,10 @@ def __init__(self, master: ttk.Frame | None = None, **kw): class ColoredButton(tk.Button): """Custom tk.Button class to fix some display issues.""" + # DEPRECATED: Migrate to EntryMenu. Will remove in 6.0 or later. def __init__(self, master: ttk.Frame | None = None, **kw): + warnings.warn('Migrate to ttk.Button. Will remove in 6.0 or later', DeprecationWarning, stacklevel=2) tk.Button.__init__(self, master, **kw) - warnings.warn('Migrate to ttk.Button. Will be removed in 6.0 or later', DeprecationWarning, stacklevel=2) class Checkbutton(ttk.Checkbutton):