Added replace and index methods to base widget class and minimal test cases.
Added another test case to verify the functionality of children access/assignment via square bracket notation __setitem__/ __getitem__.
This allows users to replace a child widget with another with a single method, instead of needing to remove the old one, keep track of the index, and insert a new one.
Added
replace
andindex
methods to base widget class and minimal test cases. Added another test case to verify the functionality of children access/assignment via square bracket notation__setitem__
/__getitem__
.This allows users to replace a child widget with another with a single method, instead of needing to remove the old one, keep track of the index, and insert a new one.
Fixes #2301
PR Checklist: