Open MaxPerl opened 7 years ago
I have not tried the example provided here, but I notice an example at https://tkdocs.com/tutorial/styles.html#styleoptions which uses Tkx::List()
rather than Tcl list syntax. So I would try:
Tkx::ttk__style_map('TButton',
-background => Tkx::list('disabled', 'red'),
);
Hello Mr. Aas, Thank you very much for your wonderful Tkx module.
Unfortunately Tkx::ttk__style_map doesn't work for me. Enclosed a simple example:
Pure Tcl with the following commands works just fine: ttk::style map TButton -background [list disabled red] ttk::button .b -text "Hello" -state "disabled" pack .b
Thanks for your help, Max