Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The question is, what are the values of variables A, B, C and D?

values variables
0
Posted

The question is, what are the values of variables A, B, C and D?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123