Class p.u.r.s.SensitiveController:

Part of pida.utils.rat.sensitive View In Hierarchy

The L{SensitiveController} is the class responsible for maintaining
the widget sensitive state. Whenever you want to add a new condition that
affects your widget you create a new client and then use that client as if
it was your condition::
    lbl = gtk.Label("My widget")
    cnt = SensitiveController(lbl)
    client = cnt.create_client()
    client.set_sensitive(len(lbl.get_text()) > 0)

If you create more clients in your controller your widget will only be
sensitive when B{all} its clients are set to C{True}, if one is set to
insensitive the widget will be insensitive as well.

When this object has no references back it will make the widget sensitive.
Line # Kind Name Docs
86 Class _Callback Undocumented
94 Method __init__ Undocumented
100 Method __on_change Undocumented
104 Method create_client It will create one more client to the controller.
112 Method __del__ Undocumented
def __init__(self, widget):
Undocumented
def __on_change(self, counter):
Undocumented
def create_client(self):
It will create one more client to the controller.

@rtype: L{SensitiveClient}

def __del__(self):
Undocumented
API Documentation for PIDA, generated by pydoctor.