Need help about 'good practice' and give event in bind widget

I’ve just uploaded an example of how one could separate the event handling from the control: it’s all there in wx!!! :smiling_face_with_three_hearts: