GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.ContextHelpButton
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.ContextHelpButton — wxPython 4.3.2 Docs

phoenix_title wx.ContextHelpButton¶

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.

See also

wx.BitmapButton, wx.ContextHelp


class_hierarchy Class Hierarchy¶

Inheritance diagram for class ContextHelpButton:

Inheritance diagram of ContextHelpButton


method_summary Methods Summary¶

__init__

Constructor, creating and showing a context help button.

GetClassDefaultAttributes


api Class API¶

class wx.ContextHelpButton(BitmapButton)¶

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.


Methods¶

__init__(self, parent, id=ID_CONTEXT_HELP, pos=DefaultPosition, size=DefaultSize, style=0)¶

Constructor, creating and showing a context help button.

Parameters:
  • parent (wx.Window) – Parent window. Must not be nullptr.

  • 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.

Return type:

None

Note

Normally you only need pass the parent window to the constructor, and use the defaults for the remaining parameters.



static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
Parameters:

variant (WindowVariant)

Return type:

wx.VisualAttributes

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.