Returns the value specified for option in style. If state is specified it is expected to be a sequence of one or more states. If the default argument is set, it is used as a fallback value in case no specification for option is found.
(self, style, option, state=None, default=None)
| 378 | |
| 379 | |
| 380 | def lookup(self, style, option, state=None, default=None): |
| 381 | """Returns the value specified for option in style. |
| 382 | |
| 383 | If state is specified it is expected to be a sequence of one |
| 384 | or more states. If the default argument is set, it is used as |
| 385 | a fallback value in case no specification for option is found.""" |
| 386 | state = ' '.join(state) if state else '' |
| 387 | |
| 388 | return self.tk.call(self._name, "lookup", style, '-%s' % option, |
| 389 | state, default) |
| 390 | |
| 391 | |
| 392 | def layout(self, style, layoutspec=None): |