PageRenderTime 21ms CodeModel.GetById 12ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

HTML | 52 lines | 52 code | 0 blank | 0 comment | 0 complexity | 06896540a0ee8ddf05b6ccea966ecb50 MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 2<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>PyGUI - class Slider</title></head><body>
 3<h1>class Slider(<a href="Control.html">Control</a>)</h1>
 4A Slider is a control that allows a user to select a value by dragging
 5a knob along a scale. The range of values may be either discrete or
 6continuous, and an action may be specified to be invoked whenever the
 7user changes the value.<br>
 9<div style="margin-left: 40px;">
11  <dt style="font-family: monospace;">Slider(orient)</dt>
12  <dd>Constructs a Slide with the specified orientation, 'h' for horizontal and 'v' for vertical.<br>
13Note: On some platforms, the orientation of the slider is determined by
14its relative width and height; on such platforms, the orient parameter
15is ignored. For maximum portability, ensure that the dimensions of the
16control and the orient parameter are in agreement with each other.</dd>
20<div style="margin-left: 40px;">
22  <dt style="font-family: monospace;">value</dt>
23  <dd>The current value of the slider.<br>
24    <br>
25  </dd>
26  <dt><span style="font-family: monospace;">min_value</span><br>
27    <span style="font-family: monospace;">max_value</span></dt>
28  <dd>The minimum and maximum values to which the slider can be set. These default to 0.0 and 1.0.<br>
29    <br>
30  </dd>
31  <dt style="font-family: monospace;">action</dt>
32  <dd>Action to perform when the user changes the value of the slider. See <a href="actions.html">Actions</a>.<br>
33    <br>
34  </dd>
35  <dt style="font-family: monospace;">ticks</dt>
36  <dd>The number of tick marks to display beside the slider, including
37the ones at each end. If this is set to 0, no tick marks will be
38displayed. The default is not to show any tick marks.<br>
39    <br>
40  </dd>
41  <dt style="font-family: monospace;">discrete</dt>
42  <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>
43    <br>
44  </dd>
45  <dt style="font-family: monospace;">live</dt>
46  <dd>If true, the slider's action will be invoked continuously while
47the knob is being dragged. If false, the action will only be invoked
48when the mouse is released. The default is true.</dd>