carbonkivy.uix.codesnippet
Submodules
Attributes
Classes
CodeInput class, used for displaying highlighted code. |
|
This mixin class provides |
|
CodeSnippetLayout class. |
Package Contents
- carbonkivy.uix.codesnippet.UIX[source]
- class carbonkivy.uix.codesnippet.CodeSnippet(**kwargs)[source]
Bases:
carbonkivy.behaviors.AdaptiveBehavior,kivy.uix.codeinput.CodeInput,carbonkivy.behaviors.DeclarativeBehaviorCodeInput class, used for displaying highlighted code.
- lexer
This holds the selected Lexer used by pygments to highlight the code.
lexeris anObjectPropertyand defaults to PythonLexer.
- class carbonkivy.uix.codesnippet.CodeSnippetCopyButton(**kwargs)[source]
Bases:
carbonkivy.uix.button.CButtonGhostThis mixin class provides
Buttonbehavior. Please see thebutton behaviors moduledocumentation 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.codesnippet.CodeSnippetLayout(**kwargs)[source]
Bases:
carbonkivy.behaviors.AdaptiveBehavior,carbonkivy.behaviors.BackgroundColorBehaviorRectangular,carbonkivy.behaviors.StateFocusBehavior,carbonkivy.behaviors.DeclarativeBehavior,carbonkivy.behaviors.HoverBehavior,kivy.uix.relativelayout.RelativeLayoutCodeSnippetLayout class.
For more information, see in the
AdaptiveBehavior,BackgroundColorBehaviorRectangular,DeclarativeBehavior,HoverBehavior,RelativeLayoutandStateFocusBehaviorclasses documentation.- on_copy(text: str = '', *args) None[source]
Fired when the copy button is pressed.
For more information, see in the
Clipboardclass documentation.
- on_kv_post(*args)[source]
- carbonkivy.uix.codesnippet.filename[source]