class ValueDisplay(Control, Widget)

A ValueDisplay is a Control that provides a read-only textual display of a value.


ValueDisplay(width = 100)
The width may be either an integer or a string. If an integer, it specifies a width in pixels. If a string, the widget is made large enough to display that string using the fontin effect at construction time.


Reference to the value to be displayed. See Control.
format = "%s"
Format string to be used when displaying the value. Also see the format_value() method below.

Default Methods

This method is called to format the value for display. By default it uses the format string specified by the format attribute. You can override this method to format the value in a different way.