Home | Trees | Index | Help |
|
---|
Package wx :: Class Control |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ | Control
BookCtrlBase
,
Button
,
CalendarCtrl
,
CheckBox
,
ComboBox
,
ControlWithItems
,
DatePickerCtrl
,
Gauge
,
GenericDirCtrl
,
LEDNumberCtrl
,
ListCtrl
,
PyControl
,
RadioBox
,
RadioButton
,
ScrollBar
,
Slider
,
SpinButton
,
SpinCtrl
,
StaticBitmap
,
StaticBox
,
StaticLine
,
StaticPicture
,
StaticText
,
StyledTextCtrl
,
TextCtrl
,
ToggleButton
,
ToolBarBase
,
TreeCtrl
,
TreeListCtrl
This is the base class for a control or 'widget'.
A control is generally a small window which processes user input and/or displays one or more item of data.
Method Summary | |
---|---|
Control |
Create a Control. |
__repr__(self)
| |
Simulates the effect of the user issuing a command to the item. | |
bool |
Do the 2nd phase and create the GUI control. |
VisualAttributes |
Get the default attributes for this class. (Static method) |
String |
Return a control's text. |
Sets the item's text. |
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
pos=DefaultPosition,
size=DefaultSize,
style=0,
validator=DefaultValidator,
name=ControlNameStr)
Create a Control. Normally you should only call this from a subclass'
__init__ as a plain old wx.Control is not very useful. |
Command(self, event)Simulates the effect of the user issuing a command to the item.
|
Create(self, parent, id=-1, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ControlNameStr)Do the 2nd phase and create the GUI control.
|
GetLabel(self)Return a control's text.
|
SetLabel(self, label)Sets the item's text.
|
Static Method Details |
---|
GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)Get the default attributes for this class. This is useful if you want to use the same font or colour in your own control as in a standard control -- which is a much better idea than hard coding specific colours or fonts which might look completely out of place on the user's system, especially if it uses themes. The variant parameter is only relevant under Mac currently and is
ignore under other platforms. Under Mac, it will change the size of
the returned font. See
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:18 2005 | http://epydoc.sf.net |