GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing docs.wxpython.org — wx.adv.CommandLinkButton — wxPython 4.3.2 Docs
|
Default constructor. |
|
Button creation function for two-step creation. |
|
Returns the string label for the button. |
|
Returns the current main label. |
|
Returns the currently used note. |
|
Sets the string label and note for the button. |
|
Changes the main label. |
|
Sets a new main label and note for the button. |
|
Changes the note. |
Properties Summary¶See |
|
Class API¶Possible constructors:
CommandLinkButton() -> None CommandLinkButton(parent, id=ID_ANY, mainLabel='', note='', pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr) -> None
Objects of this class are similar in appearance to the normal Buttons but are similar to the links in a web page in functionality.
__init__ (self)
Default constructor.
Use Create to really create the control.
None
__init__ (self, parent, id=ID_ANY, mainLabel=’’, note=’’, pos=DefaultPosition, size=DefaultSize, style=0, validator=DefaultValidator, name=ButtonNameStr)
Constructor really creating a command Link button.
The button will be decorated with stock icons under GTK+ 2.
parent (wx.Window) – Parent window. Must not be nullptr.
id (wx.WindowID) – Button identifier. A value of wx.ID_ANY indicates a default value.
mainLabel (string) – First line of text on the button, typically the label of an action that will be made when the button is pressed.
note (string) – Second line of text describing the action performed when the button is pressed.
pos (wx.Point) – Button position.
size (wx.Size) – Button size. If the default size is specified then the button is sized appropriately for the text.
style (long) – Window style. See wx.Button class description.
validator (wx.Validator) – Window validator.
name (string) – Window name.
None
See also
Button creation function for two-step creation.
For more details, see wx.adv.CommandLinkButton.
parent (wx.Window)
id (wx.WindowID)
mainLabel (string)
note (string)
pos (wx.Point)
size (wx.Size)
style (long)
validator (wx.Validator)
name (string)
bool
variant (WindowVariant)
VisualAttributes
Returns the string label for the button.
str
A string with the main label and note concatenated together with a newline separating them.
See also
Returns the current main label.
str
Main label currently displayed.
Returns the currently used note.
str
Note currently displayed.
Sets the string label and note for the button.
label (string) – The label and note to set, with the two separated by the first newline or none to set a blank note.
None
Changes the main label.
mainLabel (string) – New main label to use.
None
Sets a new main label and note for the button.
Neither of the arguments can be empty, if you need to change just the label or just the note, use SetMainLabel or SetNote instead of this function.
mainLabel (string) – New main label to use.
note (string) – New note to use.
None
Changes the note.
note (string) – New note to use.
None
See GetMainLabel and SetMainLabel