No Python code generated for binding 'FocusIn' and 'FocusOut' in Entry widget.
Last edit: Samo Novak 2019-10-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-10-13
Samo,
Thank you for reporting this. I have verified that this is an issue. In the meantime, a workaround would be to add the following lines to the init function in the "_support.py file"
or whatever your entry widget is aliased as and whatever your callbacks are.
I hope this helps,
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2019-10-14
Samo,
There is another workaround you might want to know about.
If you use <button-3> on your widget and select Bindings, the bindings editor will come up.
Select "Insert" then "Advanced". Select FocusIn from the left pane and assign your call back as normal.</button-3>
When you generate your code, the event and callback will be there. This also works for FocusOut.
Don has added this to his list for 4.26.
Thank you again for reporting this.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
No Python code generated for binding 'FocusIn' and 'FocusOut' in Entry widget.
Last edit: Samo Novak 2019-10-13
Samo,
Thank you for reporting this. I have verified that this is an issue. In the meantime, a workaround would be to add the following lines to the init function in the "_support.py file"
or whatever your entry widget is aliased as and whatever your callbacks are.
I hope this helps,
Greg
Samo,
There is another workaround you might want to know about.
If you use <button-3> on your widget and select Bindings, the bindings editor will come up.
Select "Insert" then "Advanced". Select FocusIn from the left pane and assign your call back as normal.</button-3>
When you generate your code, the event and callback will be there. This also works for FocusOut.
Don has added this to his list for 4.26.
Thank you again for reporting this.
Greg