ClausWindow
import claustk
root = claustk.ClausWindow()
root.happynewyear()
| Argument | Description |
|---|---|
| background | str, by default background="christmas_trees". Also available are "deer", "gifts", "santa_clauses", "snowflakes", "stars". |
| bg_fragmentation | Pattern fragmentation, int, defaults to 3. |
| bg_blur | int, the larger the number, the greater the blur. |
Methods
- .happynewyear()
- .seticon()
like mainloop() in Tkinter windows
A universal way to add an icon to a window. A .png file is required.
root.seticon("my-icon.png")
Useful variables
- avg_color
- contrast_color
Average background color. For example, print(root.avg_color)
A contrasting color relative to the average background color. For example, print(root.contrast_color)