File: wx.Slider.txt

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (994 lines) | stat: -rw-r--r-- 22,304 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2018 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc



.. _wx.Slider:

==========================================================================================================================================
|phoenix_title|  **wx.Slider**
==========================================================================================================================================

A slider is a control with a handle which can be pulled back and forth to change the value.          

On Windows, the track bar control is used. 

Slider generates the same events as :ref:`wx.ScrollBar`  but in practice the most convenient way to process :ref:`wx.Slider`  updates is by handling the slider-specific  ``wxEVT_SLIDER``   event which carries  :ref:`wx.CommandEvent`  containing just the latest slider position. 





.. _Slider-styles:

|styles| Window Styles
================================

This class supports the following styles: 

  

- ``wx.SL_HORIZONTAL``: Displays the slider horizontally (this is the default).  
- ``wx.SL_VERTICAL``: Displays the slider vertically.  
- ``wx.SL_AUTOTICKS``: Displays tick marks. Windows only.  
- ``wx.SL_MIN_MAX_LABELS``: Displays minimum, maximum labels (new since wxWidgets 2.9.1).  
- ``wx.SL_VALUE_LABEL``: Displays value label (new since wxWidgets 2.9.1).  
- ``wx.SL_LABELS``: Displays minimum, maximum and value labels (same as ``wx.SL_VALUE_LABEL`` and ``wx.SL_MIN_MAX_LABELS`` together).  
- ``wx.SL_LEFT``: Displays ticks on the left and forces the slider to be vertical.  
- ``wx.SL_RIGHT``: Displays ticks on the right and forces the slider to be vertical.  
- ``wx.SL_TOP``: Displays ticks on the top.  
- ``wx.SL_BOTTOM``: Displays ticks on the bottom (this is the default).  
- ``wx.SL_SELRANGE``: Allows the user to select a range on the slider. Windows only.  
- ``wx.SL_INVERSE``: Inverses the minimum and maximum endpoints on the slider. Not compatible with ``wx.SL_SELRANGE``.  

Notice that
 ``SL_LEFT`` ,   ``SL_TOP`` ,   ``SL_RIGHT``   and   ``SL_BOTTOM``   specify the position of the slider ticks in MSW implementation and that the slider labels, if any, are positioned on the opposite side. So, to have a label on the left side of a vertical slider,  ``wx.SL_RIGHT``  must be used (or none of these styles at all should be specified as left and top are default positions for the vertical and horizontal sliders respectively). 







.. _Slider-events:

|events| Events Emitted by this Class
=====================================

Handlers bound for the following event types will receive a :ref:`wx.ScrollEvent` parameter.


- EVT_SCROLL: Process all scroll events.  
- EVT_SCROLL_TOP: Process  ``wxEVT_SCROLL_TOP``   scroll-to-top events (minimum position).   
- EVT_SCROLL_BOTTOM: Process  ``wxEVT_SCROLL_BOTTOM``   scroll-to-bottom events (maximum position).   
- EVT_SCROLL_LINEUP: Process  ``wxEVT_SCROLL_LINEUP``   line up events.   
- EVT_SCROLL_LINEDOWN: Process  ``wxEVT_SCROLL_LINEDOWN``   line down events.   
- EVT_SCROLL_PAGEUP: Process  ``wxEVT_SCROLL_PAGEUP``   page up events.   
- EVT_SCROLL_PAGEDOWN: Process  ``wxEVT_SCROLL_PAGEDOWN``   page down events.   
- EVT_SCROLL_THUMBTRACK: Process  ``wxEVT_SCROLL_THUMBTRACK``   thumbtrack events (frequent events sent as the user drags the thumbtrack).   
- EVT_SCROLL_THUMBRELEASE: Process  ``wxEVT_SCROLL_THUMBRELEASE``   thumb release events.   
- EVT_SCROLL_CHANGED: Process  ``wxEVT_SCROLL_CHANGED``   end of scrolling events (MSW only).   
- EVT_COMMAND_SCROLL: Process all scroll events.  
- EVT_COMMAND_SCROLL_TOP: Process  ``wxEVT_SCROLL_TOP``   scroll-to-top events (minimum position).   
- EVT_COMMAND_SCROLL_BOTTOM: Process  ``wxEVT_SCROLL_BOTTOM``   scroll-to-bottom events (maximum position).   
- EVT_COMMAND_SCROLL_LINEUP: Process  ``wxEVT_SCROLL_LINEUP``   line up events.   
- EVT_COMMAND_SCROLL_LINEDOWN: Process  ``wxEVT_SCROLL_LINEDOWN``   line down events.   
- EVT_COMMAND_SCROLL_PAGEUP: Process  ``wxEVT_SCROLL_PAGEUP``   page up events.   
- EVT_COMMAND_SCROLL_PAGEDOWN: Process  ``wxEVT_SCROLL_PAGEDOWN``   page down events.   
- EVT_COMMAND_SCROLL_THUMBTRACK: Process  ``wxEVT_SCROLL_THUMBTRACK``   thumbtrack events (frequent events sent as the user drags the thumbtrack).   
- EVT_COMMAND_SCROLL_THUMBRELEASE: Process  ``wxEVT_SCROLL_THUMBRELEASE``   thumb release events.   
- EVT_COMMAND_SCROLL_CHANGED: Process  ``wxEVT_SCROLL_CHANGED``   end of scrolling events (MSW only).   
- EVT_SLIDER: Process  ``wxEVT_SLIDER``   which is generated after any change of  :ref:`wx.Slider`  position in addition to one of the events above. Notice that the handler of this event receives a :ref:`wx.CommandEvent`  as argument and not :ref:`wx.ScrollEvent`, as all the other handlers.  






|phoenix_title| The difference between ``EVT_SCROLL_THUMBRELEASE`` and ``EVT_SCROLL_CHANGED``
=============================================================================================

The ``EVT_SCROLL_THUMBRELEASE`` event is only emitted when actually dragging the thumb using the mouse and releasing it (This ``EVT_SCROLL_THUMBRELEASE`` event is also followed by an ``EVT_SCROLL_CHANGED`` event). The ``EVT_SCROLL_CHANGED`` event also occurs when using the keyboard to change the thumb position, and when clicking next to the thumb (In all these cases the ``EVT_SCROLL_THUMBRELEASE`` event does not happen). In short, the ``EVT_SCROLL_CHANGED`` event is triggered when scrolling/ moving has finished independently of the way it had started. Please see the widgets sample ("Slider" page) to see the difference between ``EVT_SCROLL_THUMBRELEASE`` and ``EVT_SCROLL_CHANGED`` in action.   



.. seealso:: :ref:`Events and Event Handling <events and event handling>`, :ref:`wx.ScrollBar`    







|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>Slider</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.Slider_inheritance.png" alt="Inheritance diagram of Slider" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Control.html" title="wx.Control" alt="" coords="60,237,148,267"/> <area shape="rect" id="node6" href="wx.Slider.html" title="wx.Slider" alt="" coords="65,315,143,344"/> <area shape="rect" id="node2" href="wx.Window.html" title="wx.Window" alt="" coords="59,160,148,189"/> <area shape="rect" id="node3" href="wx.Object.html" title="wx.Object" alt="" coords="5,5,87,35"/> <area shape="rect" id="node4" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="48,83,159,112"/> <area shape="rect" id="node5" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="112,5,213,35"/> </map> 
   </p>

|


|appearance| Control Appearance
===============================

|

.. figure:: _static/images/widgets/fullsize/wxmsw/wx.slider.png
   :alt: wxMSW
   :figclass: floatleft

   **wxMSW**


.. figure:: _static/images/widgets/fullsize/wxmac/wx.slider.png
   :alt: wxMAC
   :figclass: floatright

   **wxMAC**


.. figure:: _static/images/widgets/fullsize/wxgtk/wx.slider.png
   :alt: wxGTK
   :figclass: floatcenter

   **wxGTK**


|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.Slider.__init__`                                                      Default constructor.
:meth:`~wx.Slider.ClearSel`                                                      Clears the selection, for a slider with the ``wx.SL_SELRANGE``  style.
:meth:`~wx.Slider.ClearTicks`                                                    Clears the ticks.
:meth:`~wx.Slider.Create`                                                        Used for two-step slider construction.
:meth:`~wx.Slider.GetLineSize`                                                   Returns the line size.
:meth:`~wx.Slider.GetMax`                                                        Gets the maximum slider value.
:meth:`~wx.Slider.GetMin`                                                        Gets the minimum slider value.
:meth:`~wx.Slider.GetPageSize`                                                   Returns the page size.
:meth:`~wx.Slider.GetRange`                                                      
:meth:`~wx.Slider.GetSelEnd`                                                     Returns the selection end point.
:meth:`~wx.Slider.GetSelStart`                                                   Returns the selection start point.
:meth:`~wx.Slider.GetThumbLength`                                                Returns the thumb length.
:meth:`~wx.Slider.GetTickFreq`                                                   Returns the tick frequency.
:meth:`~wx.Slider.GetValue`                                                      Gets the current slider value.
:meth:`~wx.Slider.SetLineSize`                                                   Sets the line size for the slider.
:meth:`~wx.Slider.SetMax`                                                        Sets the maximum slider value.
:meth:`~wx.Slider.SetMin`                                                        Sets the minimum slider value.
:meth:`~wx.Slider.SetPageSize`                                                   Sets the page size for the slider.
:meth:`~wx.Slider.SetRange`                                                      Sets the minimum and maximum slider values.
:meth:`~wx.Slider.SetSelection`                                                  Sets the selection.
:meth:`~wx.Slider.SetThumbLength`                                                Sets the slider thumb length.
:meth:`~wx.Slider.SetTick`                                                       Sets a tick position.
:meth:`~wx.Slider.SetTickFreq`                                                   Sets the tick mark frequency and position.
:meth:`~wx.Slider.SetValue`                                                      Sets the slider position.
================================================================================ ================================================================================


|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.Slider.LineSize`                                                      See :meth:`~wx.Slider.GetLineSize` and :meth:`~wx.Slider.SetLineSize`
:attr:`~wx.Slider.Max`                                                           See :meth:`~wx.Slider.GetMax` and :meth:`~wx.Slider.SetMax`
:attr:`~wx.Slider.Min`                                                           See :meth:`~wx.Slider.GetMin` and :meth:`~wx.Slider.SetMin`
:attr:`~wx.Slider.PageSize`                                                      See :meth:`~wx.Slider.GetPageSize` and :meth:`~wx.Slider.SetPageSize`
:attr:`~wx.Slider.Range`                                                         See :meth:`~wx.Slider.GetRange`
:attr:`~wx.Slider.SelEnd`                                                        See :meth:`~wx.Slider.GetSelEnd`
:attr:`~wx.Slider.SelStart`                                                      See :meth:`~wx.Slider.GetSelStart`
:attr:`~wx.Slider.ThumbLength`                                                   See :meth:`~wx.Slider.GetThumbLength` and :meth:`~wx.Slider.SetThumbLength`
:attr:`~wx.Slider.TickFreq`                                                      See :meth:`~wx.Slider.GetTickFreq` and :meth:`~wx.Slider.SetTickFreq`
:attr:`~wx.Slider.Value`                                                         See :meth:`~wx.Slider.GetValue` and :meth:`~wx.Slider.SetValue`
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: wx.Slider(Control)

   **Possible constructors**::

       Slider()
       
       Slider(parent, id=ID_ANY, value=0, minValue=0, maxValue=100,
              pos=DefaultPosition, size=DefaultSize, style=SL_HORIZONTAL,
              validator=DefaultValidator, name=SliderNameStr)
       
   
   A slider is a control with a handle which can be pulled back and forth
   to change the value.



   .. method:: __init__(self, *args, **kw)



      |overload| Overloaded Implementations:

      **~~~**

      
      **__init__** `(self)`
      
      Default constructor.                   
      
      
      
      
      **~~~**

      
      **__init__** `(self, parent, id=ID_ANY, value=0, minValue=0, maxValue=100, pos=DefaultPosition, size=DefaultSize, style=SL_HORIZONTAL, validator=DefaultValidator, name=SliderNameStr)`
      
      Constructor, creating and showing a slider.                  
      
      
      
      
      :param `parent`: Parent window. Must not be ``None``.   
      :type `parent`: wx.Window
      :param `id`: Window identifier. The value ``wx.ID_ANY`` indicates a default value.   
      :type `id`: wx.WindowID
      :param `value`: Initial position for the slider.   
      :type `value`: int
      :param `minValue`: Minimum slider position.   
      :type `minValue`: int
      :param `maxValue`: Maximum slider position.   
      :type `maxValue`: int
      :param `pos`: Window position. If :ref:`wx.DefaultPosition`  is specified then a default position is chosen.   
      :type `pos`: wx.Point
      :param `size`: Window size. If :ref:`wx.DefaultSize`  is specified then a default size is chosen.   
      :type `size`: wx.Size
      :param `style`: Window style. See :ref:`wx.Slider`.   
      :type `style`: long
      :param `validator`: Window validator.   
      :type `validator`: wx.Validator
      :param `name`: Window name.  
      :type `name`: string
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
                        
      
      
      
      .. seealso:: :meth:`Create` , :ref:`wx.Validator`    
      
      
      
      
      
      
      
      **~~~**






   .. method:: ClearSel(self)

      Clears the selection, for a slider with the ``wx.SL_SELRANGE``  style.                  





      .. availability:: Only available for MSW.  








   .. method:: ClearTicks(self)

      Clears the ticks.                  





      .. availability:: Only available for MSW.  








   .. method:: Create(self, parent, id=ID_ANY, value=0, minValue=0, maxValue=100, point=DefaultPosition, size=DefaultSize, style=SL_HORIZONTAL, validator=DefaultValidator, name=SliderNameStr)

      Used for two-step slider construction.                  

      See :ref:`wx.Slider`  for further details.                  


      :param `parent`: 
      :type `parent`: wx.Window
      :param `id`: 
      :type `id`: wx.WindowID
      :param `value`: 
      :type `value`: int
      :param `minValue`: 
      :type `minValue`: int
      :param `maxValue`: 
      :type `maxValue`: int
      :param `point`: 
      :type `point`: wx.Point
      :param `size`: 
      :type `size`: wx.Size
      :param `style`: 
      :type `style`: long
      :param `validator`: 
      :type `validator`: wx.Validator
      :param `name`: 
      :type `name`: string




      :rtype: `bool`








   .. method:: GetLineSize(self)

      Returns the line size.                  

                

      :rtype: `int`







      .. seealso:: :meth:`SetLineSize`     








   .. method:: GetMax(self)

      Gets the maximum slider value.                  

                

      :rtype: `int`







      .. seealso:: :meth:`GetMin` , :meth:`SetRange`     








   .. method:: GetMin(self)

      Gets the minimum slider value.                  

                

      :rtype: `int`







      .. seealso:: :meth:`GetMin` , :meth:`SetRange`     








   .. method:: GetPageSize(self)

      Returns the page size.                  

                

      :rtype: `int`







      .. seealso:: :meth:`SetPageSize`     








   .. method:: GetRange(self)




   .. method:: GetSelEnd(self)

      Returns the selection end point.                  



                

      :rtype: `int`







      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`GetSelStart` , :meth:`SetSelection`     








   .. method:: GetSelStart(self)

      Returns the selection start point.                  



                

      :rtype: `int`







      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`GetSelEnd` , :meth:`SetSelection`     








   .. method:: GetThumbLength(self)

      Returns the thumb length.                  



                

      :rtype: `int`







      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`SetThumbLength`     








   .. method:: GetTickFreq(self)

      Returns the tick frequency.                  



                

      :rtype: `int`







      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`SetTickFreq`     








   .. method:: GetValue(self)

      Gets the current slider value.                  

                

      :rtype: `int`







      .. seealso:: :meth:`GetMin` , :meth:`GetMax` , :meth:`SetValue`     








   .. method:: SetLineSize(self, lineSize)

      Sets the line size for the slider.                  




      :param `lineSize`: The number of steps the slider moves when the user moves it up or down a line.  
      :type `lineSize`: int




                  



      .. seealso:: :meth:`GetLineSize`     








   .. method:: SetMax(self, maxValue)

      Sets the maximum slider value.                  




      :param `maxValue`: The new top end of the slider range.  
      :type `maxValue`: int




                  



      .. seealso:: :meth:`GetMax` , :meth:`SetRange`     








   .. method:: SetMin(self, minValue)

      Sets the minimum slider value.                  




      :param `minValue`: The new bottom end of the slider range.  
      :type `minValue`: int




                  



      .. seealso:: :meth:`GetMin` , :meth:`SetRange`     








   .. method:: SetPageSize(self, pageSize)

      Sets the page size for the slider.                  




      :param `pageSize`: The number of steps the slider moves when the user pages up or down.  
      :type `pageSize`: int




                  



      .. seealso:: :meth:`GetPageSize`     








   .. method:: SetRange(self, minValue, maxValue)

      Sets the minimum and maximum slider values.                  

                


      :param `minValue`: 
      :type `minValue`: int
      :param `maxValue`: 
      :type `maxValue`: int






      .. seealso:: :meth:`GetMin` , :meth:`GetMax`     








   .. method:: SetSelection(self, startPos, endPos)

      Sets the selection.                  




      :param `startPos`: The selection start position.   
      :type `startPos`: int
      :param `endPos`: The selection end position.  
      :type `endPos`: int






      MSW port.  

                 



      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`GetSelStart` , :meth:`GetSelEnd`     








   .. method:: SetThumbLength(self, len)

      Sets the slider thumb length.                  




      :param `len`: The thumb length.  
      :type `len`: int




      MSW port.  

                 



      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`GetThumbLength`     








   .. method:: SetTick(self, tickPos)

      Sets a tick position.                  




      :param `tickPos`: The tick position.  
      :type `tickPos`: int




      MSW port.  

                 



      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`SetTickFreq`     








   .. method:: SetTickFreq(self, n)

      Sets the tick mark frequency and position.                  




      :param `n`: Frequency. For example, if the frequency is set to two, a tick mark is displayed for every other increment in the slider's range.  
      :type `n`: int




      MSW port.  

                 



      .. availability:: Only available for MSW.  







      .. seealso:: :meth:`GetTickFreq`     








   .. method:: SetValue(self, value)

      Sets the slider position.                  




      :param `value`: The slider position.   
      :type `value`: int




                  





   .. attribute:: LineSize

      See :meth:`~wx.Slider.GetLineSize` and :meth:`~wx.Slider.SetLineSize`


   .. attribute:: Max

      See :meth:`~wx.Slider.GetMax` and :meth:`~wx.Slider.SetMax`


   .. attribute:: Min

      See :meth:`~wx.Slider.GetMin` and :meth:`~wx.Slider.SetMin`


   .. attribute:: PageSize

      See :meth:`~wx.Slider.GetPageSize` and :meth:`~wx.Slider.SetPageSize`


   .. attribute:: Range

      See :meth:`~wx.Slider.GetRange`


   .. attribute:: SelEnd

      See :meth:`~wx.Slider.GetSelEnd`


   .. attribute:: SelStart

      See :meth:`~wx.Slider.GetSelStart`


   .. attribute:: ThumbLength

      See :meth:`~wx.Slider.GetThumbLength` and :meth:`~wx.Slider.SetThumbLength`


   .. attribute:: TickFreq

      See :meth:`~wx.Slider.GetTickFreq` and :meth:`~wx.Slider.SetTickFreq`


   .. attribute:: Value

      See :meth:`~wx.Slider.GetValue` and :meth:`~wx.Slider.SetValue`