DisplayConfig

This class allows you to choose a display skin for pdisplay and save the chosen skin across perceval runs.

from perceval.rendering import DisplayConfig, SymbSkin
DisplayConfig.select_skin(SymbSkin) # SymbSkin will be used by default by pdisplay if no other skin is defined.
DisplayConfig.save() # Will save the current DisplayConfig into your Perceval persistent configuration.
class perceval.rendering.DisplayConfig

Handle the display configuration such as:

  • Skin use for pdisplay. Default skin is the one in the persistent data or, if no config is found, PhysSkin.

static get_selected_skin(**kwargs)

Get the current selected skin

Return type:

ASkin

Returns:

Current selected skin

static save()

Save the current Display config in the persistent data

Return type:

None

static select_skin(skin)

Select the skin used by pdisplay

Parameters:

skin (type[ASkin]) – Skin to use for pdisplay

Return type:

None