Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 926185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:38:38+00:00 2026-05-15T19:38:38+00:00

In Windows dialog boxes, sometimes there is a small ? button on the upper

  • 0

In Windows dialog boxes, sometimes there is a small ? button on the upper right corner. Its usage is to click on the ?, then the cursor changes to an arrow with a ?, then click on widget inside the dialog box, which will then display a popup help balloon.

This is how my class definition looks like:

class Frame(wx.Frame):
  def __init__(self, parent, title):
    wx.Frame.__init__(self, parent=parent, id=wx.ID_ANY, title=title,
          style=(wx.DEFAULT_FRAME_STYLE | wx.WS_EX_CONTEXTHELP) ^ 
             (wx.RESIZE_BORDER | wx.MAXIMIZE_BOX | wx.MINIMIZE_BOX),
          pos=(20, 20))
    self.SetExtraStyle(wx.FRAME_EX_CONTEXTHELP)
    self.createOtherStuffHere()
    self.Show()

How do I tell a widget that its help balloon should say: "This button cooks spam, ham, and eggs"

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:38:39+00:00Added an answer on May 15, 2026 at 7:38 pm

    Look into context help classes

    • ContextHelp
    • ContextHelpButton

    Important thing to note is you have to initialize help provider e.g.

    provider = wx.SimpleHelpProvider()
    wx.HelpProvider_Set(provider)
    

    and set help text for widgets e.g.

    panel.SetHelpText("This is a wx.Panel.")
    

    Working example:

    import  wx
    
    class Frame(wx.Frame):
      def __init__(self, parent, title):
        wx.Frame.__init__(self, parent=parent, id=wx.ID_ANY, title=title,
                    style=(wx.DEFAULT_FRAME_STYLE | wx.WS_EX_CONTEXTHELP) ,
                    pos=(20, 20))
        self.SetExtraStyle(wx.FRAME_EX_CONTEXTHELP)
        self.CreateStatusBar()
        self.createOtherStuffHere()
        self.Show()
    
      def createOtherStuffHere(self):
        panel = wx.Panel(self)
        panel.SetHelpText("This is a wx.Panel.")
    
        self.label = wx.StaticText(panel, style=wx.WS_EX_CONTEXTHELP, label="Click me I may provide some help?", size=(200,30))
        self.label.SetHelpText("This is the help though not so helpful!")
    
        self.edit = wx.TextCtrl(panel, pos=(20,50))
        self.edit.SetHelpText("i am a edit box")
    
        self.helpButton = wx.ContextHelpButton(panel, pos=(20,100))
    
    provider = wx.SimpleHelpProvider()
    wx.HelpProvider_Set(provider)
    
    app = wx.PySimpleApp()
    frame = Frame(None, "Test")
    app.SetTopWindow(frame)
    app.MainLoop()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're writing Windows desktop apps using C++ and Win32. Our dialog boxes have an
Is there a way to automatically open up the Windows Performance Options dialog using
How do I detect inactivity in a window (including it's dialog boxes) and then
Which do you think are best practices for making a windows dialog compatible both
I want to communicate between two or more dialog windows,when i say communicate It
Is it possible to create (prefferably with WiX) windows installer dialog with hyperlink, which
I'm trying to get all domains that are available in the Windows Login dialog
I am developing LOB application, where I will need multiple dialog windows (and displaying
I have an application where the System.Windows.Forms.ColorDialog dialog box is used as a color
.NET: How can I copy the files using Windows Copy Files dialog. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.