Skip to content

Style

Latest
Compare
Choose a tag to compare
@littlewhitecloud littlewhitecloud released this 30 Jun 04:45
· 5 commits to main since this release
152851a

What's Changed

Styles

tkterminalwidget also have some styles to use such as Powershell Command:
image
image
But also, you can create your custom style by using

from tktermwidget import Config, POWERSHELL

styleconfig = Config(usetheme=True, basedon=POWERSHELL)
# if usetheme enable, the window will use sv_ttk theme
# basedon mean you can create your style based on the "basedon" style
styleconfig.mainloop()

image

After saving it, you can write down this to use the custom theme:

from tkinterwidget import Terminal, CUSTOM
example = Terminal(window, style=CUSTOM) # your custom theme
example.mainloop()

Or use a built in theme:

from tkinterwidget import Terminal, POWERSHELL # use powershell for an example
example = Terminal(window, style=POWERSHELL)
example.mainloop()

Full Changelog: v0.0.4...style