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.page.Page.__init__ |
( |
|
args | ) |
|
Member Function Documentation
def dialog.page.Page.__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.page.Page.__dict__ |
( |
|
args | ) |
|
def dialog.page.Page.__empty_value__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_children__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_controller__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_dialog__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_display__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_model__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_root__ |
( |
|
args | ) |
|
def dialog.page.Page.__get_widget__ |
( |
|
args | ) |
|
def dialog.page.Page.__getinstructions__ |
( |
|
args | ) |
|
__getinstructions__(args)
def dialog.page.Page.__getitem__ |
( |
|
args | ) |
|
def dialog.page.Page.__getnopack__ |
( |
|
args | ) |
|
def dialog.page.Page.__getparent__ |
( |
|
args | ) |
|
def dialog.page.Page.__getrules__ |
( |
|
args | ) |
|
def dialog.page.Page.__gettitle__ |
( |
|
args | ) |
|
def dialog.page.Page.__getvalid__ |
( |
|
args | ) |
|
def dialog.page.Page.__initialize_lbl_width__ |
( |
|
args | ) |
|
def dialog.page.Page.__pending__ |
( |
|
args | ) |
|
def dialog.page.Page.__recalculate_lbl_width__ |
( |
|
args | ) |
|
def dialog.page.Page.__set_controller__ |
( |
|
args | ) |
|
def dialog.page.Page.__set_model__ |
( |
|
args | ) |
|
def dialog.page.Page.__set_widget__ |
( |
|
args | ) |
|
def dialog.page.Page.__setnopack__ |
( |
|
args | ) |
|
def dialog.page.Page.__weakref__ |
( |
|
args | ) |
|
def dialog.page.Page.AddContext |
( |
|
args | ) |
|
def dialog.page.Page.AddRule |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.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.page.Page.check |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.child_added |
( |
|
args | ) |
|
def dialog.page.Page.child_removed |
( |
|
args | ) |
|
def dialog.page.Page.children |
( |
|
args | ) |
|
def dialog.page.Page.column |
( |
|
args | ) |
|
def dialog.page.Page.column_group_begin |
( |
|
args | ) |
|
def dialog.page.Page.column_group_end |
( |
|
args | ) |
|
def dialog.page.Page.controller |
( |
|
args | ) |
|
def dialog.page.Page.default_color |
( |
|
args | ) |
|
def dialog.page.Page.Destroy |
( |
|
args | ) |
|
def dialog.page.Page.dialog |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.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.page.Page.display |
( |
|
args | ) |
|
def dialog.page.Page.DoState |
( |
|
args | ) |
|
def dialog.page.Page.EnableIf |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.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.modelroot.ModelRoot.
def dialog.page.Page.file |
( |
|
args | ) |
|
def dialog.page.Page.file_save |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.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.page.Page.foo |
( |
|
args | ) |
|
def dialog.page.Page.foo |
( |
|
args | ) |
|
def dialog.page.Page.foo |
( |
|
args | ) |
|
def dialog.page.Page.frame |
( |
|
args | ) |
|
def dialog.page.Page.get_label_width |
( |
|
args | ) |
|
def dialog.page.Page.GetField |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.Grid |
( |
|
args | ) |
|
def dialog.page.Page.group |
( |
|
args | ) |
|
def dialog.page.Page.group_end |
( |
|
args | ) |
|
def dialog.page.Page.group_end |
( |
|
args | ) |
|
def dialog.page.Page.group_title |
( |
|
args | ) |
|
def dialog.page.Page.HasContext |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.instructions |
( |
|
args | ) |
|
def dialog.page.Page.IsEnabled |
( |
|
args | ) |
|
def dialog.page.Page.item_valid |
( |
|
args | ) |
|
def dialog.page.Page.label |
( |
|
args | ) |
|
def dialog.page.Page.label_width |
( |
|
args | ) |
|
def dialog.page.Page.lframe |
( |
|
args | ) |
|
def dialog.page.Page.line |
( |
|
args | ) |
|
def dialog.page.Page.list_widgets |
( |
|
args | ) |
|
For debugging, this function gives you a list
of names to pass to GetWidget.
Reimplemented from dialog.widget.Widget.
def dialog.page.Page.listbox |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.model |
( |
|
args | ) |
|
def dialog.page.Page.mtrl_browse |
( |
|
args | ) |
|
def dialog.page.Page.no_pack |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.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.page.Page.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.page.Page.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.page.Page.parent |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.RemoveStateFunction |
( |
|
args | ) |
|
def dialog.page.Page.Revert |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.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.page.Page.run_pending |
( |
|
args | ) |
|
def dialog.page.Page.scrollbar |
( |
|
args | ) |
|
def dialog.page.Page.Set |
( |
|
args | ) |
|
def dialog.page.Page.set_label_width |
( |
|
args | ) |
|
def dialog.page.Page.SetEnabled |
( |
|
args | ) |
|
Used to enable/disable these widgets. This is for internal use.
Reimplemented from dialog.widget.Widget.
def dialog.page.Page.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.page.Page.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.page.Page.size_info |
( |
|
args | ) |
|
def dialog.page.Page.tab |
( |
|
args | ) |
|
def dialog.page.Page.table |
( |
|
args | ) |
|
def dialog.page.Page.table_column |
( |
|
args | ) |
|
def dialog.page.Page.table_end |
( |
|
args | ) |
|
def dialog.page.Page.tabset_begin |
( |
|
args | ) |
|
def dialog.page.Page.tabset_end |
( |
|
args | ) |
|
def dialog.page.Page.text |
( |
|
args | ) |
|
def dialog.page.Page.title |
( |
|
args | ) |
|
def dialog.page.Page.Update |
( |
|
args | ) |
|
def dialog.page.Page.valid |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.widget |
( |
|
args | ) |
|
def dialog.page.Page.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.page.Page.__Load__ = None |
|
staticprivate |
dialog.page.Page.__Store__ = None |
|
staticprivate |
dialog.page.Page.Context = None |
|
static |
dialog.page.Page.Controller = None |
|
static |
list dialog.page.Page.CurrentContainer = [] |
|
static |
dialog.page.Page.CurrentlyEnabled = True |
|
static |
dialog.page.Page.Display = None |
|
static |
dialog.page.Page.DisplayModelFactory = None |
|
static |
dialog.page.Page.Enabled = True |
|
static |
dialog.page.Page.Extras = None |
|
static |
dialog.page.Page.InitializedLabelWidth = False |
|
static |
int dialog.page.Page.Label_width = 0 |
|
static |
dialog.page.Page.Model = None |
|
static |
dialog.page.Page.Root = None |
|
static |
tuple dialog.page.Page.RuleRegistry = () |
|
static |
dialog.page.Page.Rules = None |
|
static |
dialog.page.Page.SB_Clear = False |
|
static |
dialog.page.Page.Setup = False |
|
static |
dialog.page.Page.Values = None |
|
static |
dialog.page.Page.WatchChild = None |
|
static |