CustomTkinter
CustomTkinter copied to clipboard
bind() 'add' parameter Type
Not every widget has the bind() function defined correctly.
Some Widgets have:
def bind(self, sequence: str = None, command: Callable = None, add: Union[str, bool] = True):
While some other Widgets have:
def bind(self, sequence=None, command=None, add=True):
This definition may lead to a TypeError:
TypeError: Expected unicode, got bool
The recommended defintion would be:
def bind(self, sequence=None, command=None, add: Union[str, bool] = True):
The impacted widgets are:
- CTkComboBox
- CtkEntry
- CtkFrame
- CtkLabel
- CtkScrollbar