Are you certain that $mockOb->search returns a variable and not a value? Usually, Tk objects require a real variable and not a value to watch. A value never changes.
Depending on whether you have control over $mockOb, either have ->search return the reference to the variable to watch directly, or alternatively, pass the reference to the variable within $mockOb yourself. Having two things that access internals of $mockOb (Tk and $mockOb itself) certainly is bad design.
In reply to Re: Object Oriented reference in -textvariable
by Corion
in thread Object Oriented reference in -textvariable
by JOption
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |