File: wx.lib.gizmos.ledctrl.LEDNumberCtrl.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 (164 lines) | stat: -rw-r--r-- 6,394 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
.. 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

.. currentmodule:: wx.lib.gizmos.ledctrl

.. highlight:: python



.. _wx.lib.gizmos.ledctrl.LEDNumberCtrl:

==========================================================================================================================================
|phoenix_title|  **wx.lib.gizmos.ledctrl.LEDNumberCtrl**
==========================================================================================================================================

The LEDNumberCtrl can be used to display a series of digits, (plus spaces,
colons or dashes,) using a style reminiscent of old-timey segmented
digital displays.



|

|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>LEDNumberCtrl</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.lib.gizmos.ledctrl.LEDNumberCtrl_inheritance.png" alt="Inheritance diagram of LEDNumberCtrl" 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.lib.gizmos.ledctrl.LEDNumberCtrl.html" title="wx.lib.gizmos.ledctrl.LEDNumberCtrl" alt="" coords="5,392,256,421"/> <area shape="rect" id="node2" href="wx.Control.html" title="wx.Control" alt="" coords="87,315,175,344"/> <area shape="rect" id="node3" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="75,83,185,112"/> <area shape="rect" id="node6" href="wx.WindowBase.html" title="wx.WindowBase" alt="" coords="70,160,191,189"/> <area shape="rect" id="node4" href="wx.Object.html" title="wx.Object" alt="" coords="32,5,113,35"/> <area shape="rect" id="node5" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="139,5,240,35"/> <area shape="rect" id="node7" href="wx.Window.html" title="wx.Window" alt="" coords="86,237,175,267"/> </map> 
   </p>

|


|super_classes| Known Superclasses
==================================

:class:`wx.Control`

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.__init__`                            Create a new LEDNumberCtrl.
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.Create`                              
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.GetAlignment`                        
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.GetDrawFaded`                        
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.GetValue`                            
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.OnPaint`                             
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.OnSize`                              
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.SetAlignment`                        Set how the digits will be aligned within the widget.
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.SetDrawFaded`                        Set whether unlit segments will still be draw with a faded version of
:meth:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.SetValue`                            Set the string value to be displayed.
================================================================================ ================================================================================


|


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

================================================================================ ================================================================================
:attr:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.Alignment`                           
:attr:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.DrawFaded`                           
:attr:`~wx.lib.gizmos.ledctrl.LEDNumberCtrl.Value`                               
================================================================================ ================================================================================


|


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


.. class:: LEDNumberCtrl(wx.Control)

   The LEDNumberCtrl can be used to display a series of digits, (plus spaces,
   colons or dashes,) using a style reminiscent of old-timey segmented
   digital displays.

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

      Create a new LEDNumberCtrl.
      
      Both the normal constructor style with all parameters, or wxWidgets
      2-phase style default constructor is supported. If the default
      constructor is used then the Create method will need to be called
      later before the widget can actually be used.


   .. method:: Create(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=LED_ALIGN_LEFT|LED_DRAW_FADED, name='ledctrl')


   .. method:: GetAlignment(self)


   .. method:: GetDrawFaded(self)


   .. method:: GetValue(self)


   .. method:: OnPaint(self, evt)


   .. method:: OnSize(self, evt)


   .. method:: SetAlignment(self, alignment, redraw=True)

      Set how the digits will be aligned within the widget.
      
      Supported values are ``LED_ALIGN_LEFT``, ``LED_ALIGN_RIGHT``,
      and ``LED_ALIGN_CENTER``.


   .. method:: SetDrawFaded(self, drawFaded, redraw=True)

      Set whether unlit segments will still be draw with a faded version of
      the foreground colour.


   .. method:: SetValue(self, value, redraw=True)

      Set the string value to be displayed.


   .. attribute:: Alignment

      See :meth:`~LEDNumberCtrl.SetAlignment` , :meth:`~LEDNumberCtrl.GetAlignment` 


   .. attribute:: DrawFaded

      See :meth:`~LEDNumberCtrl.SetDrawFaded` , :meth:`~LEDNumberCtrl.GetDrawFaded` 


   .. attribute:: Value

      See :meth:`~LEDNumberCtrl.SetValue` , :meth:`~LEDNumberCtrl.GetValue`