documentation index ◦ reference manual ◦ function index
Function: | style.rebuild | (): |
This causes all styles to be rebuilt, making it possible to change styles outside of init code. There are several caveats:
init python: font = "DejaVuSans.ttf" style.default.font = font def change_font(newfont): global font font = newfont style.default.font = newfont style.rebuild() label after_load: python: style.default.font = font style.rebuild()