SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
List of all members
dialog.labeledfield.Labeled Class Reference

This class handles using fixed width fonts to keep a column of entries lined up. More...

Inheritance diagram for dialog.labeledfield.Labeled:
dialog.widget.Widget dialog.item.Item dialog.combo_choose.ChooseColor dialog.combobox.Combobox dialog.entry.Entry dialog.lockablefield.LockableCombobox dialog.lockablefield.LockableEntry dialog.radio.Radio gadget_protocol_member.Rotation0_90 MaterialBaseWidgets.MaterialFinishCombobox MaterialBaseWidgets.MaterialGradeCombobox dialog.choose_file.Choose dialog.date.DateEntry dialog.dimension.DimensionEntry dialog.entry.FloatEntry dialog.entry.IntEntry dialog.entry.MaterialPiecemarkEntry dialog.entry.ReadOnlyEntry dialog.entry.StrEntry gadget_protocol_member.ChooseSequence

Methods defined here:

def __get_label__
def __init__
def __set_label__

Data descriptors defined here:

def label
def label_widget

Methods inherited from dialog.widget.Widget:

def Destroy
def DoState
def GetWidget
def Grid
def Pack
def PackForget
def PackInfo
def PackSlaves
def SetEnabled
def SetWidget
def WatchState
def WidgetExists
def __get_widget__
def __set_widget__
def list_widgets

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>>),)

Methods inherited from dialog.item.Item:

def AddContext
def AddRule
def AddStateFunction
def DisableIf
def EnableIf
def EvaluateValid
def Find
def HasContext
def IsEnabled
def RemoveStateFunction
def SetValid
def Update
def __delitem__
def __get_children__
def __get_dialog__
def __get_root__
def __getnopack__
def __getparent__
def __getrules__
def __getvalid__
def __pending__
def __setnopack__
def child_added
def child_removed
def find_type

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.

Data and other attributes inherited from dialog.item.Item:

 Context = None
 CurrentlyEnabled = True
 Rules = None
 WatchChild = None
 __Load__ = None
 __Store__ = None

Additional Inherited Members

- Public Member Functions inherited from dialog.widget.Widget
- Public Member Functions inherited from dialog.item.Item
- Static Public Attributes inherited from dialog.widget.Widget
 Enabled = True
 Extras = None
tuple RuleRegistry = ((<function <lambda>>, <function <lambda>>),)
- Static Public Attributes inherited from dialog.item.Item
 Context = None
 CurrentlyEnabled = True
tuple RuleRegistry = ()
 Rules = None
 WatchChild = None

Detailed Description

This class handles using fixed width fonts to keep a column of entries lined up.

The Builder class will go through every LabeledField object and make sure they all share the same width.

Method resolution order

Labeled
dialog.widget.Widget
dialog.item.Item
builtin.object

Constructor & Destructor Documentation

def dialog.labeledfield.Labeled.__init__ (   args)

Member Function Documentation

def dialog.labeledfield.Labeled.__delitem__ (   args)
def dialog.labeledfield.Labeled.__dict__ (   args)
def dialog.labeledfield.Labeled.__get_children__ (   args)
def dialog.labeledfield.Labeled.__get_dialog__ (   args)
def dialog.labeledfield.Labeled.__get_label__ (   args)
def dialog.labeledfield.Labeled.__get_root__ (   args)
def dialog.labeledfield.Labeled.__get_widget__ (   args)
def dialog.labeledfield.Labeled.__getnopack__ (   args)
def dialog.labeledfield.Labeled.__getparent__ (   args)
def dialog.labeledfield.Labeled.__getrules__ (   args)
def dialog.labeledfield.Labeled.__getvalid__ (   args)
def dialog.labeledfield.Labeled.__pending__ (   args)
def dialog.labeledfield.Labeled.__set_label__ (   args)
def dialog.labeledfield.Labeled.__set_widget__ (   args)
def dialog.labeledfield.Labeled.__setnopack__ (   args)
def dialog.labeledfield.Labeled.__weakref__ (   args)
def dialog.labeledfield.Labeled.AddContext (   args)
def dialog.labeledfield.Labeled.AddRule (   args)
def dialog.labeledfield.Labeled.AddStateFunction (   args)
def dialog.labeledfield.Labeled.child_added (   args)
def dialog.labeledfield.Labeled.child_removed (   args)
def dialog.labeledfield.Labeled.children (   args)
def dialog.labeledfield.Labeled.default_color (   args)
def dialog.labeledfield.Labeled.Destroy (   args)
def dialog.labeledfield.Labeled.dialog (   args)
def dialog.labeledfield.Labeled.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.item.Item.

Reimplemented in dialog.entry.StrEntry, dialog.lockablefield.LockableEntry, dialog.entry.ReadOnlyEntry, dialog.lockablefield.LockableCombobox, dialog.entry.MaterialPiecemarkEntry, dialog.entry.IntEntry, dialog.combo_choose.ChooseColor, gadget_protocol_member.Rotation0_90, dialog.choose_file.ChooseMtrl, dialog.entry.FloatEntry, dialog.choose_file.ChooseFile, dialog.combobox.Combobox, dialog.entry.Entry, MaterialBaseWidgets.MaterialGradeCombobox, dialog.choose_file.ChooseDirectory, gadget_protocol_member.ChooseSequence, dialog.radio.Radio, dialog.date.DateEntry, dialog.choose_file.Choose, MaterialBaseWidgets.MaterialFinishCombobox, and dialog.dimension.DimensionEntry.

def dialog.labeledfield.Labeled.DoState (   args)
def dialog.labeledfield.Labeled.EnableIf (   args)
def dialog.labeledfield.Labeled.EvaluateValid (   args)
def dialog.labeledfield.Labeled.Find (   args)
def dialog.labeledfield.Labeled.find_type (   args)
def dialog.labeledfield.Labeled.GetWidget (   args)
def dialog.labeledfield.Labeled.Grid (   args)
def dialog.labeledfield.Labeled.HasContext (   args)
def dialog.labeledfield.Labeled.IsEnabled (   args)
def dialog.labeledfield.Labeled.item_valid (   args)
def dialog.labeledfield.Labeled.label (   args)
def dialog.labeledfield.Labeled.label_widget (   args)
def dialog.labeledfield.Labeled.list_widgets (   args)
def dialog.labeledfield.Labeled.no_pack (   args)
def dialog.labeledfield.Labeled.Pack (   args)
def dialog.labeledfield.Labeled.PackForget (   args)
def dialog.labeledfield.Labeled.PackInfo (   args)
def dialog.labeledfield.Labeled.PackSlaves (   args)
def dialog.labeledfield.Labeled.parent (   args)
def dialog.labeledfield.Labeled.RemoveStateFunction (   args)
def dialog.labeledfield.Labeled.root (   args)
def dialog.labeledfield.Labeled.rules (   args)
def dialog.labeledfield.Labeled.SetEnabled (   args)
def dialog.labeledfield.Labeled.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.item.Item.

Reimplemented in dialog.entry.StrEntry, dialog.lockablefield.LockableEntry, dialog.entry.ReadOnlyEntry, dialog.lockablefield.LockableCombobox, dialog.entry.MaterialPiecemarkEntry, dialog.entry.IntEntry, dialog.combo_choose.ChooseColor, gadget_protocol_member.Rotation0_90, dialog.choose_file.ChooseMtrl, dialog.entry.FloatEntry, dialog.choose_file.ChooseFile, dialog.combobox.Combobox, dialog.entry.Entry, MaterialBaseWidgets.MaterialGradeCombobox, dialog.choose_file.ChooseDirectory, gadget_protocol_member.ChooseSequence, dialog.radio.Radio, dialog.date.DateEntry, dialog.choose_file.Choose, MaterialBaseWidgets.MaterialFinishCombobox, and dialog.dimension.DimensionEntry.

def dialog.labeledfield.Labeled.SetWidget (   args)
def dialog.labeledfield.Labeled.Update (   args)
def dialog.labeledfield.Labeled.WatchState (   args)
def dialog.labeledfield.Labeled.widget (   args)
def dialog.labeledfield.Labeled.WidgetExists (   args)

Member Data Documentation

dialog.labeledfield.Labeled.__Load__ = None
staticprivate
dialog.labeledfield.Labeled.__Store__ = None
staticprivate
dialog.labeledfield.Labeled.Context = None
static
dialog.labeledfield.Labeled.CurrentlyEnabled = True
static
dialog.labeledfield.Labeled.Enabled = True
static
dialog.labeledfield.Labeled.Extras = None
static
tuple dialog.labeledfield.Labeled.RuleRegistry = ((<function <lambda>>, <function <lambda>>),)
static
dialog.labeledfield.Labeled.Rules = None
static
dialog.labeledfield.Labeled.WatchChild = None
static