/Doc/Slider.html
https://bitbucket.org/alsh/pygui-mirror · HTML · 52 lines · 52 code · 0 blank · 0 comment · 0 complexity · 06896540a0ee8ddf05b6ccea966ecb50 MD5 · raw file
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>PyGUI - class Slider</title></head><body>
- <h1>class Slider(<a href="Control.html">Control</a>)</h1>
- A Slider is a control that allows a user to select a value by dragging
- a knob along a scale. The range of values may be either discrete or
- continuous, and an action may be specified to be invoked whenever the
- user changes the value.<br>
- <h2>Constructor</h2>
- <div style="margin-left: 40px;">
- <dl>
- <dt style="font-family: monospace;">Slider(orient)</dt>
- <dd>Constructs a Slide with the specified orientation, 'h' for horizontal and 'v' for vertical.<br>
- Note: On some platforms, the orientation of the slider is determined by
- its relative width and height; on such platforms, the orient parameter
- is ignored. For maximum portability, ensure that the dimensions of the
- control and the orient parameter are in agreement with each other.</dd>
- </dl>
- </div>
- <h2>Properties</h2>
- <div style="margin-left: 40px;">
- <dl>
- <dt style="font-family: monospace;">value</dt>
- <dd>The current value of the slider.<br>
- <br>
- </dd>
- <dt><span style="font-family: monospace;">min_value</span><br>
- <span style="font-family: monospace;">max_value</span></dt>
- <dd>The minimum and maximum values to which the slider can be set. These default to 0.0 and 1.0.<br>
- <br>
- </dd>
- <dt style="font-family: monospace;">action</dt>
- <dd>Action to perform when the user changes the value of the slider. See <a href="actions.html">Actions</a>.<br>
- <br>
- </dd>
- <dt style="font-family: monospace;">ticks</dt>
- <dd>The number of tick marks to display beside the slider, including
- the ones at each end. If this is set to 0, no tick marks will be
- displayed. The default is not to show any tick marks.<br>
- <br>
- </dd>
- <dt style="font-family: monospace;">discrete</dt>
- <dd>If true, the value of the control is constrained to correspond to one of the tick marks specified with the <span style="font-family: monospace;">ticks</span> property. If false, the value may be set to anything between the <span style="font-family: monospace;">min_value</span> and <span style="font-family: monospace;">max_value</span>. The default is false.<br>
- <br>
- </dd>
- <dt style="font-family: monospace;">live</dt>
- <dd>If true, the slider's action will be invoked continuously while
- the knob is being dragged. If false, the action will only be invoked
- when the mouse is released. The default is true.</dd>
- </dl>
- </div>
- ---<br>
- </body></html>