InstructionSVGWidgetCache
Module¶
This module allows fast access to instruction SVGs.
-
class
kniteditor.InstructionSVGWidgetCache.
InstructionSVGWidgetCache
(svg_cache=None)[source]¶ Bases:
object
A chache to create widgets with instruction SVGs fast.
-
__init__
(svg_cache=None)[source]¶ Create an InstructionSVGWidgetCache.
Parameters: svg_cache¶ – an InstructionSVGCache
orNone
ifdefault_svg_cache
shall be used
-
__weakref__
¶ list of weak references to the object (if defined)
-
-
class
kniteditor.InstructionSVGWidgetCache.
SVGWidget
(svg, **kwargs)[source]¶ Bases:
kivy.uix.scatter.Scatter
This is the widget for an instruction to display.
-
kniteditor.InstructionSVGWidgetCache.
default_cache
()[source]¶ Return the default InstructionSVGWidgetCache.
Return type: InstructionSVGWidgetCache.InstructionSVGWidgetCache