Anytime rules are run, go ahead and run this rule.
More...
Methods defined here: |
def | new |
def | run |
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
Anytime rules are run, go ahead and run this rule.
Method resolution order
Always
dialog.rule.ValueRule
dialog.rule.Rule
builtin.object
Constructor & Destructor Documentation
def dialog.rules.Always.__init__ |
( |
|
args | ) |
|
Member Function Documentation
def dialog.rules.Always.__dict__ |
( |
|
args | ) |
|
def dialog.rules.Always.__getdialog__ |
( |
|
args | ) |
|
def dialog.rules.Always.__getdisplay__ |
( |
|
args | ) |
|
def dialog.rules.Always.__getenabled__ |
( |
|
args | ) |
|
def dialog.rules.Always.__getname__ |
( |
|
args | ) |
|
def dialog.rules.Always.__getobject__ |
( |
|
args | ) |
|
def dialog.rules.Always.__getvalid__ |
( |
|
args | ) |
|
def dialog.rules.Always.__weakref__ |
( |
|
args | ) |
|
def dialog.rules.Always.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.Always.dialog |
( |
|
args | ) |
|
def dialog.rules.Always.display |
( |
|
args | ) |
|
def dialog.rules.Always.enabled |
( |
|
args | ) |
|
def dialog.rules.Always.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.Always.name |
( |
|
args | ) |
|
def dialog.rules.Always.new |
( |
|
args | ) |
|
def dialog.rules.Always.object |
( |
|
args | ) |
|
def dialog.rules.Always.run |
( |
|
args | ) |
|
def dialog.rules.Always.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.Always.valid |
( |
|
args | ) |
|