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

  • Home
  • SEARCH
  • 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 6739613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:30:35+00:00 2026-05-26T11:30:35+00:00

I am building a Python program that searches things on a remote website. Sometimes

  • 0

I am building a Python program that searches things on a remote website.
Sometimes the operation takes many seconds and I believe that the user will not notice the status bar message “Search Operation in progress”.
Therefore, I would like to change the mouse cursor to highlight that the program is still waiting for a result.

This is the method I am using:

def OnButtonSearchClick( self, event ):
        """
        If there is text in the search text, launch a SearchOperation.
        """
        searched_value = self.m_search_text.GetValue()

        if not searched_value:
            return

        # clean eventual previous results
        self.EnableButtons(False)
        self.CleanSearchResults()

        operations.SearchOperation(self.m_frame, searched_value)

I tried two different approaches, both before the last line:

  • wx.BeginBusyCursor()
  • self.m_frame.SetCursor(wx.StockCursor(wx.CURSOR_WAIT))

None of them are working.

I am using KDE under GNU/Linux. This does not work under Gnome, too

Any hints? Thank you

  • 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-26T11:30:36+00:00Added an answer on May 26, 2026 at 11:30 am

    I asked Robin Dunn, the maker of wxPython about this, and it looks like this should work, but doesn’t. However, if you call the panel’s SetCursor(), it DOES work or so I’m told. Here’s an example you can try:

    import wx
    
    ########################################################################
    class MyForm(wx.Frame):
    
        #----------------------------------------------------------------------
        def __init__(self):
            wx.Frame.__init__(self, None, wx.ID_ANY, "Tutorial")
    
            # Add a self.panel so it looks the correct on all platforms
            self.panel = wx.Panel(self, wx.ID_ANY)
    
            btn = wx.Button(self.panel, label="Change Cursor")
            btn.Bind(wx.EVT_BUTTON, self.changeCursor)
            sizer = wx.BoxSizer(wx.HORIZONTAL)
            sizer.Add(btn)
            self.panel.SetSizer(sizer)
    
        #----------------------------------------------------------------------
        def changeCursor(self, event):
            """"""
            myCursor= wx.StockCursor(wx.CURSOR_WAIT)
            self.panel.SetCursor(myCursor)
    
    
    #----------------------------------------------------------------------
    # Run the program
    if __name__ == "__main__":
        app = wx.PySimpleApp()
        frame = MyForm().Show()
        app.MainLoop()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a website where I have a need that user should be
I'm building a centralized desktop application using Python/wxPython. One of the requirements is User
I'm building a download manager in python for fun, and sometimes the connection to
I'm building an open source project that uses python and c++ in Windows. I
I'm building a fairly large enterprise application made in python that on its first
Building a python application that converts raw audio files into wave using sox on
I'm building my first Python program :) However, I installed Python 3.2 instead of
I am in the process of building a system in python that centralizes the
I am having trouble building a Python function that launches TkInter objects, with commands
Let's say you are building a Python-based web app that requires some workflow management

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.