Am 28.04.21 um 00:12 schrieb welle ozean:
I've checked the code, and the way it works it is not straightforward to
use it directly from Tcl. However with some work (and knowledge of
Python) it should be possible to translate the predefined themes into
Tcl. The color definitions for the predefinied themes are given here:
https://github.com/israel-dryer/ttkbootstrap/blob/master/src/ttkbootstrap/themes.json
The theme is then constructed at runtime in the python code from here:
https://github.com/israel-dryer/ttkbootstrap/blob/master/src/ttkbootstrap/__init__.py
Quite unusual, __init__.py is like pkgIndex.tcl, so it took me a bit to
figure out that the cose which does the work is embedded here.
Now there are these options:
a) Translate the __init__.py to Tcl and use the json file to do the work
b) Run the python code and then rip off the settings by inspecting the
ttk layouts or tracing the updates. E.g. you could replace all
"delf.settings.update()" with a "print()" and then see what it is doing.
In addition to just colours, the code also creates images for some parts
on the fly. You'd need to save those as PNG files, e.g. by hacking the
init.py to save the files after creation
Christian