carbonkivy.uix.icon

Submodules

Attributes

UIX

filename

Classes

CBaseIcon

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

CIcon

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

CIconCircular

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

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

icon
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 unicodechar, use a font such as freesans.ttf that has the glyph.

font_name is a StringProperty and defaults to ‘Roboto’. This value is taken from Config.

on_icon(*args) None[source]
class carbonkivy.uix.icon.CIcon(**kwargs)[source]

Bases: carbonkivy.behaviors.BackgroundColorBehaviorRectangular, CBaseIcon

The 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, CBaseIcon

The 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]