The question is, what are the values of variables A, B, C and D?
The value of A is “sunken”. The hull is a Tk frame which has been given the widget class “Mywidget”; it will automatically query the option database and pick up this value. Since the -relief option is implicitly delegated to the hull, Snit takes no action. The value of B is “red”. The hull will automatically pick up the value “green” for its -background option, just as it picked up the -relief value. However, Snit knows that -hullbackground is mapped to the hull’s -background option; hence, it queries the option database for -hullbackground and gets “red” and updates the hull accordingly. The value of C is also “red”, because -background is implicitly delegated to the hull; thus, retrieving it is the same as retrieving -hullbackground. Note that this case is unusual; the -background option should probably have been excluded using the delegate statement’s “except” clause, or (more likely) delegated to some other component. The value of D is “5”, but not for the reason you think. Note th