carbonkivy.uix.icon
Submodules
Attributes
Classes
The CBaseIcon class inherits from Label to display icons from IBM's icon library using the generated icon font. |
|
The CBaseIcon class inherits from Label to display icons from IBM's icon library using the generated icon font. |
|
The CBaseIcon class inherits from Label to display icons from IBM's icon library using the generated icon font. |
Package Contents
- carbonkivy.uix.icon.UIX[source]
- class carbonkivy.uix.icon.CBaseIcon(**kwargs)[source]
Bases:
carbonkivy.behaviors.AdaptiveBehavior,carbonkivy.behaviors.DeclarativeBehavior,kivy.uix.label.LabelThe CBaseIcon class inherits from Label to display icons from IBM’s icon library using the generated icon font.
- font_name
Filename of the font to use. The path can be absolute or relative. Relative paths are resolved by the
resource_find()function.Warning
Depending of your text provider, the font file can be ignored. However, you can mostly use this without problems.
If the font used lacks the glyphs for the particular language/symbols you are using, you will see ‘[]’ blank box characters instead of the actual glyphs. The solution is to use a font that has the glyphs you need to display. For example, to display
, use a font such
as freesans.ttf that has the glyph.font_nameis aStringPropertyand defaults to ‘Roboto’. This value is taken fromConfig.
- class carbonkivy.uix.icon.CIcon(**kwargs)[source]
Bases:
carbonkivy.behaviors.BackgroundColorBehaviorRectangular,CBaseIconThe CBaseIcon class inherits from Label to display icons from IBM’s icon library using the generated icon font.
- on_kv_post(base_widget)[source]
- class carbonkivy.uix.icon.CIconCircular(**kwargs)[source]
Bases:
carbonkivy.behaviors.BackgroundColorBehaviorCircular,CBaseIconThe CBaseIcon class inherits from Label to display icons from IBM’s icon library using the generated icon font.
- on_kv_post(base_widget)[source]
- carbonkivy.uix.icon.filename[source]