|
31.
|
|
|
``take`` `style-name`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:134
|
|
32.
|
|
|
Removes all properties of this style that were assigned before this style statement was run, and replaces them with the properties of the named style. This does not change the parent of this style.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:132
|
|
33.
|
|
|
``variant`` `simple-expression`
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../../source/style.rst:140
|
|
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
|