Skip to content

Commit 866f2da

Browse files
committed
warning about getting a value
1 parent d11b244 commit 866f2da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Widgets/TkWidget.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ protected function call(string $method, ...$args): string
130130
*/
131131
public function __get(string $name)
132132
{
133+
// TODO: this won't work when the widget changes the option
134+
// internally by itself, like progressbar.
133135
$value = $this->options->$name;
134136
if ($value === null) {
135137
$value = $this->call('cget', Options::getTclOption($name));

0 commit comments

Comments
 (0)