Respect the parent attribute of the `create_widget` method.