|
34.
|
|
|
Evaluates the simple expression, to yield a string or list of strings, which are interpreted as :ref:`screen variants <screen-variants>`. If at least one of the variants given is active, the style statement is run, otherwise it is ignored.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:137
|
|
35.
|
|
|
Examples of style statements are::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:142
|
|
36.
|
|
|
Style statements are always run at init-time. If a style statement is not in an init block, it is automatically placed init an init 0 block.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:158
|
|
37.
|
|
|
Defining Styles: Python
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:163
|
|
38.
|
|
|
Named styles exists as fields on the global ``style`` object. To create a new style, create an instance of the Style class, and assign it to a field on the ``style`` object.::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:165
|
|
39.
|
|
|
Style properties can be set by assigning to field-like properties of the Styles. ::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:172
|
|
40.
|
|
|
Creates a new style object. Style properties can be assigned to the fields of this object.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:181
|
|
41.
|
|
|
`parent`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:186
|
|
42.
|
|
|
The styles parent. This can be another style object, or a string.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:185
|
|
43.
|
|
|
This removes all style properties from this object. Values will be inherited from this object's parent.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:190
|