| Home | Trees | Index | Help |
|---|
| Package ocempgui :: Package widgets :: Module ScrolledWindow :: Class ScrolledWindow |
|
object--+ |INotifyable--+ |BaseObject--+ |object--+ | | |Sprite--+ |BaseWidget--+ |Bin--+ | ScrolledWindow
ScrolledList
ScrolledWindow (width, height) -> ScrolledWindow
A widget class, which supports horizontal and vertical scrolling.
The ScrolledWindow is a viewport, which enables its child to be
scrolled horizontally and vertically. It offers various scrolling
types, which customize the bahviour of the supplied scrollbars.
The scrolling behaviour of the ScrolledWindow can be adjusted
through the 'scrolling' attribute or set_scrolling() method and can
be one of the SCROLL_TYPES constants.
Default action (invoked by activate()):
Gives the ScrolledWindow the input focus.
Mnemonic action (invoked by activate_mnemonic()):
None
Signals:
SIG_KEYDOWN - Invoked, when a key is pressed while the ScrolledWindow
has the input focus.
SIG_MOUSEDOWN - Invoked, when a mouse button is pressed over the
ScrolledWindow.
Attributes:
scrolling - The scrolling behaviour of the ScrolledWindow.
vscrollbar - The vertical scrollbar of the ScrolledWindow.
hscrollbar - The horizontal scrollbar of the ScrolledWindow.
| Method Summary | |
|---|---|
__init__(self,
width,
height)
| |
S.activate () -> None | |
W.draw () -> None | |
S.draw_bg () -> Surface | |
S.notify (...) -> None | |
B.set_child (...) -> None | |
S.set_scrolling (...) -> None | |
S._scroll_child () -> None | |
S._update_scrollbars (...) -> bool, bool | |
| 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_focus (...) -> bool | |
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 | |
W._get_rect () -> pygame.Rect | |
W._get_rect_attr (...) -> var | |
W._set_rect_attr (...) -> 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 | |
|---|---|
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 |
|---|
activate(self)S.activate () -> None Activates the ScrolledWindow default action. Activates the ScrolledWindow default action. This usually means giving the ScrolledWindow the input focus. |
draw(self)W.draw () -> None Draws the ScrolledWindow surface. Creates the visible surface of the ScrolledWindow.
|
draw_bg(self)S.draw_bg () -> Surface Draws the ScrolledWindow background surface and returns it. Creates the visible background surface of the ScrolledWindow and returns it to the caller. |
notify(self, event)S.notify (...) -> None Notifies the ScrolledWindow about an event. |
set_child(self, child=None)B.set_child (...) -> None Sets the child to display in the ScrolledList. Creates a parent-child relationship from the ScrolledList to a widget. If the widget does not support native scrolling, it will be packed into a ViewPort.
|
set_scrolling(self, scrolling)S.set_scrolling (...) -> None Sets the scrolling behaviour for the ScrolledWindow. The scrolling can be a value of the SCROLL_TYPES list. SCROLL_AUTO causes the ScrolledList to display its scrollbars on demand only, SCROLL_ALWAYS will show the scrollbars permanently and SCROLL_NEVER will disable the scrollbars. Raises a ValueError, if the passed argument is not a value of the SCROLL_TYPES tuple. |
_scroll_child(self)S._scroll_child () -> None Scrolls the child of the ScrolledWindow. |
_update_scrollbars(self)S._update_scrollbars (...) -> bool, bool Updates the size and maximum values of the attached scrollbars. Updates the size and values of the attached scrollbars and returns boolean values about their visibility in the order hscrollbar, vscrollbar. |
| Property Details |
|---|
hscrollbarThe herizontal scrollbar.
|
scrollingThe scrolling behaviour for the ScrolledWindow.
|
vscrollbarThe vertical scrollbar.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Jan 10 10:18:44 2008 | http://epydoc.sf.net |