first version of event handling in gui
Merge remote-tracking branch 'origin/PyExamples' into PyExamples