Instances of this class may be used to add a question mark button that when pressed, puts the application into context-help mode.
It does this by creating a wx.ContextHelp object which itself generates a wxEVT_HELP
event when the user clicks on a window.
On Windows, you may add a question-mark icon to a dialog by use of the wx.DIALOG_EX_CONTEXTHELP
extra style, but on other platforms you will have to add a button explicitly, usually next to wx.OK
, Cancel or similar buttons.
Inheritance diagram for class
ContextHelpButton:
Methods Summary¶ Class API¶Possible constructors:
ContextHelpButton(parent, id=ID_CONTEXT_HELP, pos=DefaultPosition, size=DefaultSize, style=0) -> None
Instances of this class may be used to add a question mark button that when pressed, puts the application into context-help mode.
Constructor, creating and showing a context help button.
parent (wx.Window) â Parent window. Must not be None
.
id (wx.WindowID) â Button identifier. Defaults to wx.ID_CONTEXT_HELP
.
pos (wx.Point) â Button position. If wx.DefaultPosition
is specified then a default position is chosen.
size (wx.Size) â Button size. If wx.DefaultSize
is specified then the button is sized appropriately for the question mark bitmap.
style (long) â Window style.
None
Note
Normally you only need pass the parent window to the constructor, and use the defaults for the remaining parameters.
variant (WindowVariant)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4