No documentation available.
More...
Data descriptors inherited from dialog.modelroot.ModelRoot: |
def | controller |
def | display |
def | model |
def | root |
| This actually searches up the tree for a model root because this can change as the dialog is being built.
|
def | valid |
Data and other attributes inherited from dialog.widget.Widget: |
| Enabled = True |
| Extras = None |
Data descriptors inherited from dialog.builder.Builder: |
def | label_width |
Detailed Description
Constructor & Destructor Documentation
def dialog.subdialog.Subdialog.__init__ |
( |
|
args | ) |
|
Create a subdialog.
Arguments:
container - a Tkinter frame, such as the mainCavity of a GadgetLeaf.
Reimplemented from dialog.builder.Builder.
Member Function Documentation
def dialog.subdialog.Subdialog.__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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.__dict__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__empty_value__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_children__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_controller__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_dialog__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_display__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_model__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_root__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__get_widget__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__getitem__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__getnopack__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__getparent__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__getrules__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__getvalid__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__initialize_lbl_width__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__new_field__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__pending__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__recalculate_lbl_width__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__set_controller__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__set_model__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__set_widget__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__setnopack__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.__weakref__ |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.add_after |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.AddContext |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.AddIdle |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.AddRule |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.AddTask |
( |
|
args | ) |
|
Tasks are run at startup and then forgotten
This is more efficient than adding something to the idle loop, and
you know when it'll happen.
def dialog.subdialog.Subdialog.AssertNotDestroyed |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.button |
( |
|
args | ) |
|
Creates a button widget
@param label The text on the button
@param command A callable object taking no arguments which will be
called when the button is clicked/activated
@return the button.Button object
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.check |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.checkbutton |
( |
|
args | ) |
|
This method is deprecated
It exists for compatibility with older code.
You should look into the "check" method. It
creates checkbuttons one at a time.
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.child_added |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.child_removed |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.children |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.column |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.column_group_begin |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.column_group_end |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.controller |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.default_color |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.Destroy |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.dialog |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.dim |
( |
|
args | ) |
|
Create a dimension field which is a label to the left of an entry
widget and displays dimensions as strings and floats.
@param name The name of this field
@param initial_value This is the default value to start with
if a model is not provided to the dialog.
@param label a string to display in a label to the left of
the entry box
@param width
@param length
@param style The style of the dimension. @see dimension.DimensionStyled
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.display |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.DoState |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.EnableIf |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.End |
( |
|
args | ) |
|
Invoke to terminate processing withing a
subdialog. Processing cannot be restarted after End is
invoked.
def dialog.subdialog.Subdialog.entry |
( |
|
args | ) |
|
@param name The name of this field
@param initial_value This is the default value to start with
if a model is not provided to the dialog.
@param label a string to display in a label to the left of
the entry box
@param width
@param length
@param kind If you do not provide an initial_value then you
must provide this. @see kind module documentation
@return the entry.Entry object
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.EvaluateValid |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.file |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.file_save |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.foo |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.foo |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.foo |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.frame |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.get_label_width |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.GetField |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.Grid |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.group |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.group_end |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.group_end |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.group_title |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.HasContext |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.image |
( |
|
args | ) |
|
Add an image object.
@param path should be the path to an existing image in the filesystem.
@return the image.Image object
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.IsEnabled |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.IsRunning |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.IsValid |
( |
|
args | ) |
|
Indicate to the caller whether or not the state of the input
to the subdialog is valid or not.
def dialog.subdialog.Subdialog.item_valid |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.label |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.label_width |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.lframe |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.line |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.list_widgets |
( |
|
args | ) |
|
For debugging, this function gives you a list
of names to pass to GetWidget.
Reimplemented from dialog.widget.Widget.
def dialog.subdialog.Subdialog.listbox |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.menu |
( |
|
args | ) |
|
Creates a combobox widget
@param name The name of this field
@param values The list of items in the checkbox, these will
be displayed to the user.
@param initial_value This should be a list of strings or indexes to
be checked on corresponding to the values list.
@param label a string to display in a label to the left of
the entry box
@param editable If this is True the menu will allow the user to type
in strings that do not match any strings in your list.
@return the combobox.Combobox object
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.model |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.mtrl_browse |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.no_pack |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.parent |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.radio |
( |
|
args | ) |
|
Creates a set of radio buttons.
@param name The name of this field
@param values The list of items in the radio button, these will
be displayed to the user.
@param initial_value This should be a list of strings or indexes to
be checked on corresponding to the values list.
@param label a string to display in a label to the left of
the entry box
@return the radio.Radio object
Reimplemented from dialog.builder.Builder.
def dialog.subdialog.Subdialog.RemoveStateFunction |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.Reset |
( |
|
args | ) |
|
Restore the initial values in the subdialog's model to the
user interface.
def dialog.subdialog.Subdialog.Revert |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.Run |
( |
|
args | ) |
|
Call to "activate" the subdialog, invoking all its rules, etc.
def dialog.subdialog.Subdialog.run_pending |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.Save |
( |
|
args | ) |
|
Put the data values displayed in the user interface into the
subdialog's model. This overwrites the model's original values,
and cannot be "undone" by Reset or other means.
def dialog.subdialog.Subdialog.scrollbar |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.Set |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.set_label_width |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.SetEnabled |
( |
|
args | ) |
|
Used to enable/disable these widgets. This is for internal use.
Reimplemented from dialog.widget.Widget.
def dialog.subdialog.Subdialog.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.modelroot.ModelRoot.
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.size_info |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.tab |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.table |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.table_column |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.table_end |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.tabset_begin |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.tabset_end |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.text |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.Update |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.valid |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.widget.Widget.
def dialog.subdialog.Subdialog.widget |
( |
|
args | ) |
|
def dialog.subdialog.Subdialog.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.widget.Widget.
Member Data Documentation
dialog.subdialog.Subdialog.__Load__ = None |
|
staticprivate |
dialog.subdialog.Subdialog.__Store__ = None |
|
staticprivate |
dialog.subdialog.Subdialog.Context = None |
|
static |
dialog.subdialog.Subdialog.Controller = None |
|
static |
list dialog.subdialog.Subdialog.CurrentContainer = [] |
|
static |
dialog.subdialog.Subdialog.CurrentlyEnabled = True |
|
static |
dialog.subdialog.Subdialog.Display = None |
|
static |
dialog.subdialog.Subdialog.DisplayModelFactory = None |
|
static |
dialog.subdialog.Subdialog.Enabled = True |
|
static |
dialog.subdialog.Subdialog.Extras = None |
|
static |
dialog.subdialog.Subdialog.InitializedLabelWidth = False |
|
static |
int dialog.subdialog.Subdialog.Label_width = 0 |
|
static |
dialog.subdialog.Subdialog.Model = None |
|
static |
dialog.subdialog.Subdialog.Root = None |
|
static |
tuple dialog.subdialog.Subdialog.RuleRegistry = () |
|
static |
dialog.subdialog.Subdialog.Rules = None |
|
static |
dialog.subdialog.Subdialog.SB_Clear = False |
|
static |
dialog.subdialog.Subdialog.Setup = False |
|
static |
dialog.subdialog.Subdialog.Values = None |
|
static |
dialog.subdialog.Subdialog.WatchChild = None |
|
static |