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 4037688
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:22:45+00:00 2026-05-20T12:22:45+00:00

The following bit of code populates a class that inherits from the wx.Menu class,

  • 0

The following bit of code populates a class that inherits from the wx.Menu class, with menu items. So self is basically a wx.Menu. When I run the flowing code snippet, the line about.SetBitmap(wx.Bitmap(‘Icon24.ico’)) seems to change the highlighting from the default:

enter image description here

to this plain blue style:

enter image description here

The line about.SetBitmap(wx.Bitmap(‘Icon24.ico’)) simply adds an icon (test). But, for some reason it changes the highlighting style. I know this is about as nitpicky as it gets, but I’d like to the first images highlighting style with the second images Icon. This is in Windows 7 if it makes a difference.

Snippet:

about =  wx.MenuItem(self, -1, 'About...')
about.SetBitmap(wx.Bitmap('Icon24.ico')) # The line that's causing the problem. 

itemlist = [self.AppendItem(about),
            self.AppendSeparator(),
            self.Append(-1, 'Options...'),
            self.AppendSeparator(),
            self.Append(-1, 'Exit')]

for i in itemlist:
    self.Bind(wx.EVT_MENU, self.menu_beh, i)
  • 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-20T12:22:46+00:00Added an answer on May 20, 2026 at 12:22 pm

    Well, according to the WxWidgets doc, the version 2.8 doesn’t support Windows Vista or 7, so I think this is expected since looks like it reset the entire menu theme to the XP style, I think the best you can try is to use the testing version 2.9, which support Vista (but not 7).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following bit of code that worked as expected before we upgraded
I have the following bit of code in a class method NSDictionary *shopAddresses =
I have the following bit of code, I expect that given cstdio is included
the following bit of code is run regularly as a cronjob and is turning
I have the following bit of code that modifies an observable collection of 'screens'
I have the following bit of code: $query = SELECT * FROM jos_vm_product_details WHERE
I am having a bit of trouble with the following code that appears to
I have the following bit of code in my htaccess that will allow a
Why is the following bit of code returns Height: -1 which means that the
I have the following bit of code that I am having some difficulty with.

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.