connect_notify weirdness, once again...



Hello,

I'm once again having trouble using connect notify. I'm still uncertain why I
need this function at all, the documentation is lacking at this point.

What I want to do is showing a context menu when the client right-clicks my
treeview. Okay, here come the questions:

1. The documentation says I either have to inherit from TreeView and overwrite
on_button_press_event() or use connect_notify to bind an own function from which
I call the base class handler. What's the reasoning here? Why can't I just
directly override on_button_press_event()?

2. What is the whole point of the boolean return values and wrapping them away
with connect_notify?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]