If a Rule applies, then mark our value to a certain value.
More...
Data descriptors inherited from dialog.rule.ValueRule: |
def | display |
def | name |
def | valid |
Data descriptors inherited from dialog.rule.Rule: |
def | __dict__ |
| dictionary for instance variables (if defined)
|
def | __weakref__ |
| list of weak references to the object (if defined)
|
def | dialog |
def | enabled |
def | object |
Additional Inherited Members |
def | foo |
def | foo |
Detailed Description
If a Rule applies, then mark our value to a certain value.
Otherwise use our original value
Method resolution order
MarkIf
dialog.rule.ValueRule
dialog.rule.Rule
builtin.object
Constructor & Destructor Documentation
def dialog.rules.MarkIf.__init__ |
( |
|
args | ) |
|
@param to This is the value to change our value to
in the case of "iff", otherwise we use our original value.
@param iff This must be a Rule which takes one
function as an argument, this is the standard Rule.
@param otherwise Same as iff, but this Rule
must be the exact opposite of Rule. They
should never both apply at the same time!
@param fields This is a list of field objects to work with
Reimplemented from dialog.rule.ValueRule.
Member Function Documentation
def dialog.rules.MarkIf.__dict__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__getdialog__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__getdisplay__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__getenabled__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__getname__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__getobject__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__getvalid__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.__weakref__ |
( |
|
args | ) |
|
def dialog.rules.MarkIf.delete |
( |
|
args | ) |
|
You may override this function.
This function is called when the rule is removed, often to
be replaced by a quick call to new
Reimplemented from dialog.rule.ValueRule.
def dialog.rules.MarkIf.dialog |
( |
|
args | ) |
|
def dialog.rules.MarkIf.display |
( |
|
args | ) |
|
def dialog.rules.MarkIf.enabled |
( |
|
args | ) |
|
def dialog.rules.MarkIf.get_storage |
( |
|
args | ) |
|
This is where you store your data if you need to store data between
invocations of your rule.
@param dat The item you're editing.
@return a list. You can put things into this list and they'll
be there the next time you call get_storage
@note This is a constant time function.
Reimplemented from dialog.rule.ValueRule.
def dialog.rules.MarkIf.modified |
( |
|
args | ) |
|
def dialog.rules.MarkIf.name |
( |
|
args | ) |
|
def dialog.rules.MarkIf.new |
( |
|
args | ) |
|
def dialog.rules.MarkIf.object |
( |
|
args | ) |
|
def dialog.rules.MarkIf.run |
( |
|
args | ) |
|
def dialog.rules.MarkIf.set_storage |
( |
|
args | ) |
|
You may prefer to override the default storage.
Lists actually get pretty expensive, so if you modify
your rule to use tuples (if you need to save multiple values)
or the single value you need to save you'll save a lot of memory
in multi edit.
For the Change rule, this means 178 bytes per item instead of 242 bytes.
Reimplemented from dialog.rule.ValueRule.
def dialog.rules.MarkIf.valid |
( |
|
args | ) |
|