__init__(self,
id=None,
filename=None,
filter=None,
multiple=False,
callback=None,
expand_policy=None,
active=True,
visible=True)
(Constructor)
Constructor.
-
- Parameters:
id -
may not be provided, it will be generated automatically.
filename -
default filename.
filter -
filter files to show, see FileChooser.
multiple -
enable selection of multiple files.
callback -
function (or list of functions) to call back when file is
selected. Function will get as parameters:
-
app reference.
-
widget reference.
-
file name or file list (if multiple).
expand_policy -
how this widget should fit space, see ExpandPolicy.Policy.Rule.
- Overrides:
eagle.Button.__init__
See Also: FileChooser
|