a simple question... how to detect click action in another module?

Ringwraith lubowiecka at go2.pl
Sun Feb 15 14:30:40 EST 2004


Hello!

How to detect in Python that some click action was performed in some module
imported by my main module?
Let's assume I have a tree.py module that implements all functionality of a
tree view widget and my sample application (let's say myapp.py) that imports
those tree module to create tree view control inside the main frame. I want
in my application to have some method that responds immediately (!!!!) to
click action performed within the tree module.... So if the click action is
performed in the tree module, some method from my myapp.py module
immediately executes... it could be for example a method that just displays
currently selected item of a tree (on a status bar) or whatever.....

Any hints would be appreciated.

Thank You in advance!

Please forgive me any english mistakes ;-)

Best Regards,

Sylwia





More information about the Python-list mailing list