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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:41:07+00:00 2026-05-12T07:41:07+00:00

Pastebin link: http://pastebin.com/f40ae1bcf The problem: I made a wx.Gauge, with the range of 50.

  • 0

Pastebin link: http://pastebin.com/f40ae1bcf

The problem: I made a wx.Gauge, with the range of 50. Then a function that updates Gauge’s value when the program is idle. When the gauge is filled by around 50% it empties and doesn’t show anything for a while. The value is actually 50 when it does this, and I think that when the value is 50 it should be full.

Why does it do this? I also tried with a wx.Timer instead of binding to wx.EVT_IDLE but I didn’t have luck.

  • 1 1 Answer
  • 3 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-12T07:41:08+00:00Added an answer on May 12, 2026 at 7:41 am

    A few things.

    • I can’t reproduce this on my iMac, it goes all the way to full. Python 2.5.4, wxPython 2.8.9.2
    • Idle events can come at strange times. Try adding print event to your idle handler to see exactly when those events are coming. A timer would be best. Is the gauge moving really fast or flickering?
    • You can try calling gauge.Update() to force a complete redraw too.
    • I always just use 100 as my gauge limit, maybe just try that.

    An easier way than a timer could be:

    import wx
    
    class GaugeFrame(wx.Frame):
        def __init__(self):
            wx.Frame.__init__(self, None, -1, "Gauge example",
                              size=(350, 150))
            panel = wx.Panel(self, -1)
            self.count = 0
            self.gauge = wx.Gauge(panel, -1, 50, (20, 50), (250, 25))
            self.update_gauge()
    
        def update_gauge(self):
            self.count = self.count + 1
            if self.count >= 50:
                self.count = 0
            self.gauge.SetValue(self.count)
            wx.CallLater(100, self.update_gauge)
    
    app = wx.PySimpleApp()
    GaugeFrame().Show()
    app.MainLoop()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's a pastebin link to my entire jQuery code. [ http://pastebin.com/w57ma5Gx ] The Thumbnails
I have uploaded my code to pastebin, this is the link: http://pastebin.com/wBu9PP2x When i
http://pastebin.com/1btVw8Cb There are two classes in the above code. So above is my code
http://pastebin.com/FPkZhxAQ Hi, I am making a WCF service/client application. WCF Service is web based.
http://pastebin.com/mYk8M038 here is what I have so far... I think it may be something
referring to: http://pastebin.com/raHbAvRN My tables: Users:(id, lat, lon, ...) Favorites:(id, userId, prefId) my alias
Here are my classes: http://pastebin.com/3dc5Vb1t When I try to run BookStore b = new
This is my Categorias model: http://pastebin.com/Wk5iw3Hf and this is my Proyectos model: http://pastebin.com/LDTpZ3Cy One
This is the div's CSS http://pastebin.com/y2QAPUaH Basically the links inside the DIV do not
I have the following JSON: http://pastebin.com/Sh20StJY SO removed the chars on my post, so

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.