Paned¶
Paned is a view that can hold two children. The two children can either be View or
Element.
-
class
Aduct.Views.Paned.Paned(**kwargs)¶ Makes a paned based on given properties. Its default name is aduct-paned
Parameters: **kwargs – The keyword arguments to be passed to Gtk.Panedfrom whichPanedis made.-
add_child(child, position=0)¶ Adds the child to paned.
When
positionis 1 or 2,childis added at panel 1 or 2 ofselfrespectively. When it is 0,childis added to the first available panel. When it is neither of specified values, nothing is done.Parameters: Raises: ValueError– Raised whenselfalready has a child.
-
get_props()¶ Gets the interface properties.
Returns: A dictionary with interface properties. Return type: dict
-
remove_child(child)¶ Removes the given child from
self.Parameters: child ( VieworElement) – The child which has to be removed fromself.Raises: ValueError– Raised whenchildis not present inself.
-
replace_child(old_child, new_child)¶ Replaces the existing child with a new child.
Parameters: Raises: ValueError– Raised whenold_childis not inself.
-
set_from_props(props)¶ Sets the interface from given properties.
Parameters: props ( dict) – The dictionary containig properties of interface.
-
type¶ Used by autodoc_mock_imports.
-