Mouse events with graph-tool


we are building an interactive graph and want to implement some mouse
events. We found the example: , but
we still struggle. Is there an easier way then making a subclass? Like "
give the draw function a self written mouse_listener as argument" ?

Thanks for help!


No, that would require allowing every possible override via parameter
arguments, which would clutter the code tremendously. The proper way to do
this is to subclass, which a lot more elegant, and does the job.