ClausToplevel
def open_toplevel():
toplevel = claustk.ClausToplevel()
open_toplevel_btn = claustk.ClausButton(root, text="Open ClausToplevel", command=open_toplevel)
open_toplevel_btn.pack(padx=10, pady=10)
| 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
- .seticon()
A universal way to add an icon to a window. A .png file is required.
toplevel.seticon("my-icon.png")
Useful variables
- avg_color
- contrast_color
Average background color. For example, print(toplevel.avg_color)
A contrasting color relative to the average background color. For example, print(toplevel.contrast_color)