carbonkivy.uix.datatable
Submodules
Attributes
Classes
Implements the creation and addition of child widgets as declarative |
Package Contents
- carbonkivy.uix.datatable.UIX[source]
- class carbonkivy.uix.datatable.CDatatable(*args, **kwargs)[source]
Bases:
carbonkivy.behaviors.AdaptiveBehavior,carbonkivy.behaviors.BackgroundColorBehaviorRectangular,carbonkivy.behaviors.DeclarativeBehavior,carbonkivy.behaviors.HierarchicalLayerBehavior,carbonkivy.behaviors.HoverBehavior,carbonkivy.behaviors.StateFocusBehavior,kivy.uix.boxlayout.BoxLayoutImplements the creation and addition of child widgets as declarative programming style.
- add_widget(widget, *args, **kwargs)[source]
Add a new widget as a child of this widget.
- Parameters:
- widget:
Widget Widget to add to our list of children.
- index: int, defaults to 0
Index to insert the widget in the list. Notice that the default of 0 means the widget is inserted at the beginning of the list and will thus be drawn on top of other sibling widgets. For a full discussion of the index and widget hierarchy, please see the Widgets Programming Guide.
Added in version 1.0.5.
- canvas: str, defaults to None
Canvas to add widget’s canvas to. Can be ‘before’, ‘after’ or None for the default canvas.
Added in version 1.9.0.
- widget:
>>> from kivy.uix.button import Button >>> from kivy.uix.slider import Slider >>> root = Widget() >>> root.add_widget(Button()) >>> slider = Slider() >>> root.add_widget(slider)
- carbonkivy.uix.datatable.filename[source]