Skip to content

Commit a633be9

Browse files
committed
whoops
1 parent 50d9e41 commit a633be9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

myNotebook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ def __init__(self, master: ttk.Frame | None = None, **kw):
121121
class ColoredButton(tk.Button):
122122
"""Custom tk.Button class to fix some display issues."""
123123

124+
# DEPRECATED: Migrate to EntryMenu. Will remove in 6.0 or later.
124125
def __init__(self, master: ttk.Frame | None = None, **kw):
126+
warnings.warn('Migrate to ttk.Button. Will remove in 6.0 or later', DeprecationWarning, stacklevel=2)
125127
tk.Button.__init__(self, master, **kw)
126-
warnings.warn('Migrate to ttk.Button. Will be removed in 6.0 or later', DeprecationWarning, stacklevel=2)
127128

128129

129130
class Checkbutton(ttk.Checkbutton):

0 commit comments

Comments
 (0)