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¶
Known Superclasses¶
Methods Summary¶
Create a new LEDNumberCtrl. |
|
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ControlNameStr) -> bool |
|
Set how the digits will be aligned within the widget. |
|
Set whether unlit segments will still be draw with a faded version of |
|
Set the string value to be displayed. |
Properties Summary¶
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.
Methods¶
- __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.
- Create(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=LED_ALIGN_LEFT | LED_DRAW_FADED, name='ledctrl')¶
Create(parent, id=ID_ANY, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ControlNameStr) -> bool
- GetAlignment(self)¶
- GetDrawFaded(self)¶
- GetValue(self)¶
- OnPaint(self, evt)¶
- OnSize(self, evt)¶
- SetAlignment(self, alignment, redraw=True)¶
Set how the digits will be aligned within the widget.
Supported values are
LED_ALIGN_LEFT
,LED_ALIGN_RIGHT
, andLED_ALIGN_CENTER
.
- SetDrawFaded(self, drawFaded, redraw=True)¶
Set whether unlit segments will still be draw with a faded version of the foreground colour.
- SetValue(self, value, redraw=True)¶
Set the string value to be displayed.
Properties¶
- Alignment¶
See
SetAlignment
,GetAlignment
- DrawFaded¶
See
SetDrawFaded
,GetDrawFaded