[issue39642] Behaviour of disabled widgets: widget.bind(func) -vs- w = widget(command=func)

2020-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am sure that the behavior you observe is correct. The default button click handler must check the state before calling the command function, while I presume that your printBtn_onclick function (not shown) does not. If Serhiy disagrees, he can reopen.

[issue39642] Behaviour of disabled widgets: widget.bind(func) -vs- w = widget(command=func)

2020-02-15 Thread SilentGhost
Change by SilentGhost : -- nosy: +gpolo, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39642] Behaviour of disabled widgets: widget.bind(func) -vs- w = widget(command=func)

2020-02-15 Thread Clinton Hunter
New submission from Clinton Hunter : Using the bind method, the event will still trigger when the widget is disabled. However, if using "command=" it doesn't. Wondering whether the behaviour between the two ways of setting up event handling should behave the same? Not a major issue, easy