Gnm.StyleCond¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
deps |
r/w |
||
op |
r/w |
||
overlay |
r/w |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gnm.StyleCond¶
- classmethod new(op, sheet)¶
- Parameters:
op (
Gnm.StyleCondOp
) –sheet (
Gnm.Sheet
) –
- Return type:
- canonicalize()¶
Turns a custom condition into a more specific one, i.e., reverses the effect of using
Gnm.StyleCond.get_alternate_expr
. Leaves the condition alone if it is not recognized.
- free()¶
- get_alternate_expr()¶
- Returns:
An custom expression that can be used in place of self.
- Return type:
Gnm.ExprTop
orNone
- get_expr(idx)¶
- Parameters:
idx (
int
) – index- Returns:
the
Gnm.ExprTop
for the idx'th condition.- Return type:
- set_expr(texpr, idx)¶
- Parameters:
texpr (
Gnm.ExprTop
) –idx (
int
) –