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)
| 385 | |
| 386 | |
| 387 | def lookup(self, style, option, state=None, default=None): |
| 388 | """Returns the value specified for option in style. |
| 389 | |
| 390 | If state is specified it is expected to be a sequence of one |
| 391 | or more states. If the default argument is set, it is used as |
| 392 | a fallback value in case no specification for option is found.""" |
| 393 | state = ' '.join(state) if state else '' |
| 394 | |
| 395 | return self.tk.call(self._name, "lookup", style, '-%s' % option, |
| 396 | state, default) |
| 397 | |
| 398 | |
| 399 | def layout(self, style, layoutspec=None): |