CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

bind() 'add' parameter Type

Open rtommy opened this issue 1 year ago • 0 comments

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

rtommy avatar Oct 27 '24 15:10 rtommy