carbonkivy.uix.modal

Submodules

Attributes

UIX

filename

Classes

CModal

Implements the creation and addition of child widgets as declarative

CModalBody

Stack layout class. See module documentation for more information.

CModalBodyContent

Implements the creation and addition of child widgets as declarative

CModalCloseButton

This mixin class provides

CModalFooter

Stack layout class. See module documentation for more information.

CModalHeader

Stack layout class. See module documentation for more information.

CModalHeaderLabel

Implements the creation and addition of child widgets as declarative

CModalHeaderTitle

Implements the creation and addition of child widgets as declarative

CModalLayout

Box layout class. See module documentation for more information.

Package Contents

carbonkivy.uix.modal.UIX[source]
class carbonkivy.uix.modal.CModal(**kwargs)[source]

Bases: carbonkivy.behaviors.AdaptiveBehavior, carbonkivy.behaviors.DeclarativeBehavior, kivy.uix.modalview.ModalView

Implements the creation and addition of child widgets as declarative programming style.

add_widget(widget: kivy.uix.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.

>>> from kivy.uix.button import Button
>>> from kivy.uix.slider import Slider
>>> root = Widget()
>>> root.add_widget(Button())
>>> slider = Slider()
>>> root.add_widget(slider)
remove_widget(widget, *args, **kwargs)[source]

Remove a widget from the children of this widget.

Parameters:
widget: Widget

Widget to remove from our children list.

>>> from kivy.uix.button import Button
>>> root = Widget()
>>> button = Button()
>>> root.add_widget(button)
>>> root.remove_widget(button)
class carbonkivy.uix.modal.CModalBody(*args, **kwargs)[source]

Bases: carbonkivy.uix.stacklayout.CStackLayout

Stack layout class. See module documentation for more information.

class carbonkivy.uix.modal.CModalBodyContent(*args, **kwargs)[source]

Bases: carbonkivy.uix.label.CLabel

Implements the creation and addition of child widgets as declarative programming style.

class carbonkivy.uix.modal.CModalCloseButton(**kwargs)[source]

Bases: carbonkivy.uix.shell.UIShellButton

This mixin class provides Button behavior. Please see the button behaviors module documentation for more information.

Events:
on_press

Fired when the button is pressed.

on_release

Fired when the button is released (i.e. the touch/click that pressed the button goes away).

class carbonkivy.uix.modal.CModalFooter(*args, **kwargs)[source]

Bases: carbonkivy.uix.stacklayout.CStackLayout

Stack layout class. See module documentation for more information.

class carbonkivy.uix.modal.CModalHeader(*args, **kwargs)[source]

Bases: carbonkivy.uix.stacklayout.CStackLayout

Stack layout class. See module documentation for more information.

class carbonkivy.uix.modal.CModalHeaderLabel(*args, **kwargs)[source]

Bases: carbonkivy.uix.label.CLabel

Implements the creation and addition of child widgets as declarative programming style.

class carbonkivy.uix.modal.CModalHeaderTitle(*args, **kwargs)[source]

Bases: carbonkivy.uix.label.CLabel

Implements the creation and addition of child widgets as declarative programming style.

class carbonkivy.uix.modal.CModalLayout(*args, **kwargs)[source]

Bases: carbonkivy.uix.boxlayout.CBoxLayout

Box layout class. See module documentation for more information.

carbonkivy.uix.modal.filename[source]