= WidgetStateHistory(history_size=5)
widget_states
"widget_1"] = {"value": 10}
widget_states["widget_1"] = {"value": 20}
widget_states[assert len(widget_states) == 1
assert widget_states['widget_1'] == {"value": 20}
del widget_states["widget_1"]
assert len(widget_states) == 0
Widget history
Store a fixed number of stored states in-memory
WidgetStateHistory
WidgetStateHistory (history_size:int=5)
Initialize self. See help(type(self)) for accurate signature.