| Home | Trees | Index | Help |
|---|
| Package ocempgui :: Package widgets :: Module FileList :: Class FileList |
|
object--+ |INotifyable--+ |BaseObject--+ |object--+ | | |Sprite--+ |BaseWidget--+ |Bin--+ |ScrolledWindow--+ |ScrolledList--+ | FileList
FileList (width, height, directory=None) -> FileList
A scrolled list, which can list and browse a filesystem.
The FileList widget class is a ScrolledList, which can list and
browse filesystem contents using FileListItem objects. It supports
automatic directory changes and change notifications. By default the
list will be sorted with the directories first.
To set or get the directory of which's content should displayed, the
'directory' attribute and set_directory() method can be used.
filelist.directory = '/usr/bin'
if filelist.directory == 'C:':
filelist.directory = 'C:\Windows'
Default action (invoked by activate()):
See the ScrolledList class.
Mnemonic action (invoked by activate_mnemonic()):
See the ScrolledList class.
Signals:
SIG_DOUBLECLICKED - Invoked, when the list is double-clicked.
Arguments:
directory - The directory to list the contents of.
| Method Summary | |
|---|---|
__init__(self,
width,
height,
directory)
| |
F.notify (...) -> None | |
F.set_directory (...) -> None | |
| Inherited from ScrolledList | |
S.deselect (...) -> None | |
S.get_selected () -> list | |
S.select (...) -> None | |
S.select_all () -> None | |
S.set_cursor (...) -> None | |
S.set_focus (...) -> bool | |
S.set_items (...) -> None | |
S.set_selectionmode (...) -> None | |
S.set_spacing (...) -> None | |
| Inherited from ScrolledWindow | |
S.activate () -> None | |
W.draw () -> None | |
S.draw_bg () -> Surface | |
B.set_child (...) -> None | |
S.set_scrolling (...) -> None | |
| Inherited from Bin | |
B.destroy () -> None | |
B.set_depth (...) -> None | |
B.set_event_manager (...) -> None | |
B.set_indexable (...) -> None | |
B.set_padding (...) -> None | |
B.set_sensitive (...) -> None | |
B.update (...) -> None | |
| Inherited from BaseWidget | |
W.activate_mnemonic (...) -> bool | |
W.check_sizes (...) -> int, int | |
W.create_style () -> WidgetStyle | |
For debugging usage only | |
W.get_style () -> WidgetStyle | |
B.initclass () -> None (Class method) | |
W.lock () -> None | |
W.rect_to_client (...) -> pygame.Rect | |
W.set_dirty (...) -> None | |
W.set_entered (...) -> None | |
W.set_event_area (...) -> None | |
W.set_index (...) -> None | |
W.set_maximum_size (...) -> None | |
W.set_minimum_size (...) -> None | |
W.set_opacity (...) -> None | |
W.set_position (...) -> None | |
W.set_size (...) -> None | |
W.set_state (...) -> None | |
W.set_style (...) -> None | |
W.set_tooltip (...) -> None | |
W.unlock () -> None | |
| Inherited from BaseObject | |
B.connect_signal (...) -> EventCallback | |
B.disconnect_signal (...) -> None | |
B.emit (...) -> bool | |
B.run_signal_handlers (...) -> None | |
| Inherited from Sprite | |
| |
add(group or list of of groups, ...) add a sprite to container | |
| |
alive() -> bool check to see if the sprite is in any groups | |
groups() -> list of groups list used sprite containers | |
kill() remove this sprite from all groups | |
remove(group or list of groups, ...) remove a sprite from container | |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Property Summary | |
|---|---|
directory: The directory to list the contents of. | |
| Inherited from ScrolledList | |
cursor: The item, which is currently focused. | |
items: The item collection of the ScrolledList. | |
selectionmode: The selection mode for the ScrolledList. | |
spacing: Additional spacing to place between the items. | |
| Inherited from ScrolledWindow | |
hscrollbar: The herizontal scrollbar. | |
scrolling: The scrolling behaviour for the ScrolledWindow. | |
vscrollbar: The vertical scrollbar. | |
| Inherited from Bin | |
child: The widget hold by the Bin. | |
padding: Additional padding between child and borders. | |
| Inherited from BaseWidget | |
bottom | |
bottomleft | |
bottomright | |
center | |
centerx | |
centery | |
controls: Widgets associated with the widget. | |
depth: The z-axis layer depth of the widget. | |
dirty: Indicates, whether the widget need to be redrawn. | |
entered: Indicates, whether the widget is entered. | |
eventarea: The area, which gets the events. | |
focus: The focus of the widget. | |
h | |
height | |
image: The visible surface of the widget. | |
index: The tab index position of the widget. | |
indexable: The IIndexable, the widget is attached to. | |
left | |
locked: Indicates, whether the widget is locked. | |
maxsize: The maximum size to occupy by the widget. | |
midbottom | |
midleft | |
midright | |
midtop | |
minsize: The guaranteed size of the widget. | |
opacity: The opacity of the widget. | |
position: The position of the topleft corner. | |
rect: The area occupied by the widget. | |
right | |
sensitive: The sensitivity of the widget. | |
size | |
state: The current state of the widget. | |
style: The style of the widget. | |
tooltip: The tool tip text to display for the widget. | |
top | |
topleft | |
topright | |
w | |
width | |
x | |
y | |
| Inherited from BaseObject | |
manager: The event manager to use by the object. | |
| Instance Method Details |
|---|
notify(self, event)F.notify (...) -> None Notifies the FileList about an event. |
set_directory(self, directory)F.set_directory (...) -> None Sets the directory to list the contents of. Sets the directory the FileList should list the contents of. If the directory could not be found or accessed, the bell keycode '\a' will be printed and the directory will remain unchanged. Raises a ValueError, if the passed directory argument does not exist or is not a directory path. |
| Property Details |
|---|
directoryThe directory to list the contents of.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Jan 10 10:18:45 2008 | http://epydoc.sf.net |