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

The Archive Base Latest Questions

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

In my application I want to create buttons, minus the whole button part. Like

  • 0

In my application I want to create buttons, minus the whole button part. Like clicking a URL, I guess, with some basic functionality like a subtle change in color or style upon hover/click.

I’ve accomplished this so far with wx.StaticText, but my problem is in getting a left click event to be recognized. Here’s the relevant code:

self.text = wx.StaticText(self.background, -1, 'Text test')
self.text.Bind(wx.EVT_COMMAND_LEFT_CLICK, self.DoSomething)

It just doesn’t have any effect at all. Any ideas or alternatives?

edit: Got it. Should have called wx.EVT_LEFT_UP.

  • 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-25T12:26:23+00:00Added an answer on May 25, 2026 at 12:26 pm

    PlateButtons (wx.lib.platebtn) will give you a lot of control over the buttons, including a “flat” button (with no border), and mouse over color changes, etc. (There is also style=wx.NO_BORDER for a regular button, but this isn’t reliable on Macs.)

    Depending on what you want to do, it’s probably better to use a button than StaticText since there are a lot of issues like focus, sizing, disabling, changing image on click, etc, which are less noticed but still expected and/or useful in buttons. There are a number of examples of Python code which creates buttons, including PlateButtons and GenericButtons, where you can see what’s involved in making a good button. It’s not impossible, but a hassle if you don’t need to do it.

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

Sidebar

Related Questions

In my application I want to create a dialog which has a button to
I want create an application with animate button? how can i do? after click
I want to create a Toolbar in my application. If you click a button
I want to create a Java Desktop Application and want to employ some mechanism
I want to create simple application like android image gallery but I don't want
I want to create a DashBoard in my Application like that https://i.stack.imgur.com/uDwlf.png . The
I want to create application with two Tabs, like follow: MainClass: private TabHost tabHost;
I want to create image buttons in Sencha touch 2 application. For that i
I want to create an application bar like IE has in Windows Phone 7.1
I am now having some problems when I want to create my application for

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.