in reply to Object Oriented reference in -textvariable
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Object Oriented reference in -textvariable
by JOption (Novice) on Aug 21, 2017 at 12:57 UTC | |
by Corion (Patriarch) on Aug 21, 2017 at 13:12 UTC | |
by JOption (Novice) on Aug 21, 2017 at 13:26 UTC | |
by Corion (Patriarch) on Aug 21, 2017 at 13:29 UTC |