An entry field with rules added for material piecemarks.
More...
Data and other attributes defined here: |
int | FLEN = 62 |
Data descriptors inherited from dialog.labeledfield.Labeled: |
def | label |
def | label_widget |
Data descriptors inherited from dialog.widget.Widget: |
def | __dict__ |
| dictionary for instance variables (if defined)
|
def | __weakref__ |
| list of weak references to the object (if defined)
|
def | default_color |
def | widget |
| The main Tkinter widget for this item.
|
Data and other attributes inherited from dialog.widget.Widget: |
| Enabled = True |
| Extras = None |
tuple | RuleRegistry = ((<function <lambda>>, <function <lambda>>),) |
Data descriptors inherited from dialog.item.Item: |
def | children |
def | dialog |
def | item_valid |
def | no_pack |
def | parent |
def | root |
| This actually searches up the tree for a model root because this can change as the dialog is being built.
|
def | rules |
| Returns a list of all of the current rule skeletons.
|
Detailed Description
An entry field with rules added for material piecemarks.
Method resolution order
MaterialPiecemarkEntry
Entry
dialog.labeledfield.Labeled
dialog.widget.Widget
dialog.item.Item
builtin.object
Constructor & Destructor Documentation
def dialog.entry.MaterialPiecemarkEntry.__init__ |
( |
|
args | ) |
|
Member Function Documentation
def dialog.entry.MaterialPiecemarkEntry.__delitem__ |
( |
|
args | ) |
|
This function actually destroys the child and all of its children.
All tk widgets will be destroyed. All items are removed from the tree
and destroyed as soon as possible.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.__dict__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__get_children__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__get_dialog__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__get_entry__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__get_label__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__get_root__ |
( |
|
args | ) |
|
This actually searches up the tree for a model root because
this can change as the dialog is being built.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.__get_widget__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__getnopack__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__getparent__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__getrules__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__getvalid__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__pending__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__set_label__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__set_widget__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__setnopack__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.__weakref__ |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.AddContext |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.AddRule |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.AddStateFunction |
( |
|
args | ) |
|
Append a function to the list of functions used to evaluate
the current state (enabled/disabled) of this widget.
Functions will be passed no arguments and should return True if
this Item should be enabled. False if it should be disabled.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.affected |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.child_added |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.child_removed |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.children |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.default_color |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.Destroy |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.dialog |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.DisableIf |
( |
|
args | ) |
|
Disable this item if expression is True
@param expression Must be a string representing a python
expression which returns True or False. True
indicating that you should disable the item for now.
False indicating that you shouldn't.
You may use, as variable names, any field name
within the model.
Example:
dlg = Dialog()
e = dlg.entry( 'name', 5 )
e2 = dlg.entry( 'other', 6 )
e2.DisableIf( 'other < 6 and name > 5', [e, e2] )
@param depends a list of dialog fields that should trigger this to be re-evaluated.
Generally, any name you use in your expression should be represented
by the field object (such as Entry) that corresponds to that name in
the depends list. Failing to do so will cause this disabler to be re-evaluated
less often than it should and it may not appear disabled/enabled at
all of the appropriate times.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.DoState |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.EnableIf |
( |
|
args | ) |
|
Same as DisableIf, except that the result is reversed.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.entry |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.EvaluateValid |
( |
|
args | ) |
|
override this to do something when your widget becomes invalid
by proxy via an item under it which is invalid
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.Find |
( |
|
args | ) |
|
This recursively searches the tree, from here down
for things which match query.
@param query A function which returns True or False
It is passed on argument, which is an Item
@note Example use is find_type
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.find_type |
( |
|
args | ) |
|
This recursively searches the tree, from here down, for a type t.
Example, to find all Fields:
item.find_type( Field )
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.func |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.GetWidget |
( |
|
args | ) |
|
Use this function to retrive tk widgets created by
this object with the name 'name'.
Use `list_widgets` to get a list of names for
this object.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.Grid |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.HasContext |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.IsEnabled |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.item_valid |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.kind |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.label |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.label_widget |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.list_widgets |
( |
|
args | ) |
|
For debugging, this function gives you a list
of names to pass to GetWidget.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.mixed |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.name |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.no_pack |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.Pack |
( |
|
args | ) |
|
The same as ".widget.pack( ... )"
Prefer using this function as it's compatibility with the no_pack
option avoids breaking others use of grid with your widget.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.PackForget |
( |
|
args | ) |
|
The same as ".widget.pack_forget()"
Prefer using this function as it's compatibility wi th the no_pack
option avoids breaking others use of grid with your widget.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.PackInfo |
( |
|
args | ) |
|
The same as ".widget.pack_info()"
Prefer using this function as it's compatibility wi th the no_pack
option avoids breaking others use of grid with your widget.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.PackSlaves |
( |
|
args | ) |
|
The same as ".widget.pack_slaves()"
Prefer using this function as it's compatibility wi th the no_pack
option avoids breaking others use of grid with your widget.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.parent |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.read_only |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.RemoveStateFunction |
( |
|
args | ) |
|
Remove a function (by python reference) from the current list.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.ReservePiecemark |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.root |
( |
|
args | ) |
|
This actually searches up the tree for a model root because this can change as the dialog is being built.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.rules |
( |
|
args | ) |
|
Returns a list of all of the current rule skeletons.
These will be tuples of types and arguments intended for constructing each type. Generally intended for internal use.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.screen_only |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.SetEnabled |
( |
|
args | ) |
|
Used to enable/disable these widgets. This is for internal use.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.SetValid |
( |
|
args | ) |
|
Call this to set invalid or valid this Item. It will keep
count of valid=True and valid=False. So, if you call this
3 times with valid=False and 1 time with valid=True it will
still be invalid.
It is up to the caller to make sure they even those calls out.
Consider your default state to be valid=True. Calling valid=True,
then valid=False will yield valid.
@param valid True or False "True" meaning that we are currently
in a valid state. "False" meaning invalid.
@warning This is intended for class implementors. There are
Modified and Validate rules for dialog creators.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.SetWidget |
( |
|
args | ) |
|
This is really an internal function, but,
if you're careful not to use already existing
names you can use it to store widgets you've
added to this object to customize it.
Beware that future changes to SDS/2 could
use the same name you've chosen.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.show_affects |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.Update |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.valid |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.WatchState |
( |
|
args | ) |
|
Have this function called when this widget is enabled/disabled.
@param foo This is a function which takes one argument, 'enabled'
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.widget |
( |
|
args | ) |
|
def dialog.entry.MaterialPiecemarkEntry.WidgetExists |
( |
|
args | ) |
|
This is useful if you're having problems with accessing widgets
that have been deleted. It's for debugging purposes.
@return True if the widget (.widget) does exist in the interpreter.
Reimplemented from dialog.entry.Entry.
def dialog.entry.MaterialPiecemarkEntry.width |
( |
|
args | ) |
|
Member Data Documentation
dialog.entry.MaterialPiecemarkEntry.__Load__ = None |
|
staticprivate |
dialog.entry.MaterialPiecemarkEntry.__Store__ = None |
|
staticprivate |
dialog.entry.MaterialPiecemarkEntry.Context = None |
|
static |
dialog.entry.MaterialPiecemarkEntry.CurrentlyEnabled = True |
|
static |
dialog.entry.MaterialPiecemarkEntry.Enabled = True |
|
static |
dialog.entry.MaterialPiecemarkEntry.Extras = None |
|
static |
int dialog.entry.MaterialPiecemarkEntry.FLEN = 62 |
|
static |
tuple dialog.entry.MaterialPiecemarkEntry.RuleRegistry = ((<function <lambda>>, <function <lambda>>),) |
|
static |
dialog.entry.MaterialPiecemarkEntry.Rules = None |
|
static |
dialog.entry.MaterialPiecemarkEntry.WatchChild = None |
|
static |