The Finder control implements a finder-like browser, which displays URLs.
URLs consist of items separated by the "/" character. Whenever a item is selected,
an iProvider compatible instance will be asked for the subitems of the corresponding URL.
Using these, a new field will be set up for presentation.
A filter can be installed to prevent items from being shown.
An added benefit is the ability to automatically match previously selected path
items on a certain level of the URL with the available ones, allowing to quickly
parse through URLs with a similar structure.
A limitation of the current implementation is, that you can only keep one
item selected at once in each url item area.
|
|
|
layout(self)
Returns:
the finder's main layout which contains all controls |
source code
|
|
|
|
|
selectedUrl(self,
absolute=False)
Returns:
string representing the currently selected, / separated URL, or
None if there is no url selected |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setItemByIndex(self,
item,
index)
Set the given string item, which sits at the given index of a url
:raise ValueError: if item does not exist at given index
:raise IndexError: if index is not currently shown |
source code
|
|
|
setUrl(self,
url,
require_all_items=True,
allow_memory=False)
Set the given url to be selected
:param url: / separated relative url. |
source code
|
|
|
|
|
|
|
_set_element_items(self,
start_elm_id,
elements)
Fill the items from the start_elm_id throughout to all elements, until
one url does not yield any items, or the item cannot be selected
:param elements: a full list of all available child elements. |
source code
|
|
|
_set_element_visible(self,
index)
Possibly create and fill the given element index, all following elements
are set invivisble |
source code
|
|