A field which allows a user to pick a directory in the filesystem.
More...
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
A field which allows a user to pick a directory in the filesystem.
Method resolution order
ChooseDirectory
Choose
dialog.entry.Entry
dialog.labeledfield.Labeled
dialog.widget.Widget
dialog.item.Item
builtin.object
Constructor & Destructor Documentation
def dialog.choose_file.ChooseDirectory.__init__ |
( |
|
args | ) |
|
@param label The label text to put next to the entry
@param default The starting path if no model is provided.
Reimplemented from dialog.choose_file.Choose.
Member Function Documentation
def dialog.choose_file.ChooseDirectory.__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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.__dict__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__get_children__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__get_dialog__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__get_entry__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__get_label__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.__get_widget__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__getnopack__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__getparent__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__getrules__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__getvalid__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__pending__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__set_label__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__set_widget__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__setnopack__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.__weakref__ |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.AddContext |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.AddRule |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.affected |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.child_added |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.child_removed |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.children |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.default_color |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.Destroy |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.dialog |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.DoState |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.EnableIf |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.entry |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.func |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.Grid |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.HasContext |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.IsEnabled |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.item_valid |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.kind |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.label |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.label_widget |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.list_widgets |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.mixed |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.name |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.no_pack |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.parent |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.read_only |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.RemoveStateFunction |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.RunDialog |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.screen_only |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.SetEnabled |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.show_affects |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.Update |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.valid |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.widget |
( |
|
args | ) |
|
def dialog.choose_file.ChooseDirectory.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.choose_file.Choose.
def dialog.choose_file.ChooseDirectory.width |
( |
|
args | ) |
|
Member Data Documentation
dialog.choose_file.ChooseDirectory.__Load__ = None |
|
staticprivate |
dialog.choose_file.ChooseDirectory.__Store__ = None |
|
staticprivate |
dialog.choose_file.ChooseDirectory.Context = None |
|
static |
dialog.choose_file.ChooseDirectory.CurrentlyEnabled = True |
|
static |
dialog.choose_file.ChooseDirectory.Enabled = True |
|
static |
dialog.choose_file.ChooseDirectory.Extras = None |
|
static |
tuple dialog.choose_file.ChooseDirectory.RuleRegistry = ((<function <lambda>>, <function <lambda>>),) |
|
static |
dialog.choose_file.ChooseDirectory.Rules = None |
|
static |
dialog.choose_file.ChooseDirectory.WatchChild = None |
|
static |