Box Layout
The CBoxLayout class inherits from BoxLayout and extends its functionality by introducing additional properties.
For instance, let’s see an example of how CBoxLayout enhances control of background color compared to standard one.
CBoxLayout:
bg_color: app.background_hover
BoxLayout:
canvas.before:
Color:
rgba: app.background_hover
SmoothRectangle:
pos: self.pos
size: self.size
API
- class carbonkivy.uix.boxlayout.boxlayout.CBoxLayout(*args: Any, **kwargs: Any)[source]
Bases:
AdaptiveBehavior,BackgroundColorBehaviorRectangular,BoxLayout,DeclarativeBehavior