API Reference for Enthought Tool Suite 3.0.1
Define a standard horizontal and vertical Enable 'scrollbar' component.
The scrollbar uses images for the pieces of the scrollbar itself and stretches them appropriately in the draw phase.
h_height = 0
h_width = 0
hs_width = 0
LINE_DOWN = 2
LINE_UP = 0
Scroll bar zones:
NO_SCROLL = -Const(1)
PAGE_DOWN = 3
PAGE_UP = 1
Scroll bar images and sizes:
sb_image = { }
Scroll information look-up table:
scroll_info = [ ('line_up', 1.0, 3), ('page_up', 1.0, 2), ('line_down', -Const(1.0), 3), ('page_down', -Const(1.0), 2) ]
SLIDER = 4
v_height = 0
v_width = 0
vs_height = 0
Scrollbar suffix names by zone:
zone_suffixes = [ '_line_up_suffix', '', '_line_down_suffix', '', '_slider_suffix' ]
Verify that a specified scroll bar position is valid
Verify that a set of range values for a scrollbar is valid
| Local name | Refers to |
|---|---|
| Component | enthought.enable.component.Component |
| Event | enthought.traits.trait_types.Event |
| Group | enthought.traits.ui.group.Group |
| Property | enthought.traits.traits.Property |
| Trait | enthought.traits.traits.Trait |
| TraitError | enthought.traits.trait_errors.TraitError |
| TupleType | types.TupleType |
| View | enthought.traits.ui.view.View |
© Copyright 2002-2008 Enthought, Inc.