carbonkivy.uix.button

Submodules

Attributes

UIX

filename

Classes

CButton

This mixin class provides

CButtonDanger

This mixin class provides

CButtonGhost

This mixin class provides

CButtonIcon

The CBaseIcon class inherits from Label to display icons from IBM's icon library using the generated icon font.

CButtonLabel

Implements the creation and addition of child widgets as declarative

CButtonPrimary

This mixin class provides

CButtonSecondary

This mixin class provides

CButtonTertiary

This mixin class provides

Package Contents

carbonkivy.uix.button.UIX[source]
class carbonkivy.uix.button.CButton(**kwargs)[source]

Bases: carbonkivy.behaviors.AdaptiveBehavior, carbonkivy.behaviors.BackgroundColorBehaviorRectangular, carbonkivy.behaviors.StateFocusBehavior, kivy.uix.behaviors.ButtonBehavior, carbonkivy.behaviors.DeclarativeBehavior, carbonkivy.behaviors.HoverBehavior, kivy.uix.relativelayout.RelativeLayout

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).

dynamic_width
icon_color
text_color
text_color_focus
text_color_disabled
text_color_hover
cbutton_layout
role
actual_width
font_size
text
icon
padding
text_halign
on_font_size(*args) None[source]
on_text_color(instance: object, color: list | str) None[source]
on_icon(*args) None[source]
on_text(*args) None[source]
on_hover(*args) None[source]
on_state(*args) None[source]
on_focus(*args) None[source]
adjust_width(*args) None[source]
class carbonkivy.uix.button.CButtonDanger(**kwargs)[source]

Bases: CButton

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).

variant
on_focus(*args) None[source]
class carbonkivy.uix.button.CButtonGhost(**kwargs)[source]

Bases: CButton

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.button.CButtonIcon(**kwargs)[source]

Bases: carbonkivy.uix.icon.CIcon

The CBaseIcon class inherits from Label to display icons from IBM’s icon library using the generated icon font.

base_button
class carbonkivy.uix.button.CButtonLabel(*args, **kwargs)[source]

Bases: carbonkivy.uix.label.CLabel

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

base_button
class carbonkivy.uix.button.CButtonPrimary(**kwargs)[source]

Bases: CButton

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.button.CButtonSecondary(**kwargs)[source]

Bases: CButton

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.button.CButtonTertiary(**kwargs)[source]

Bases: CButton

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).

on_focus(*args) None[source]
carbonkivy.uix.button.filename[source]