473,387 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to create progress bar?

hi,

i'm using python 2.5 and am creating a GUI with a Reset button that will reset in 30s. When i click on the reset button it will show a progress bar. Pls advise.

thanks
maximus
Jan 5 '11 #1
4 4250
bvdet
2,851 Expert Mod 2GB
Off the top of my head (thinking Tkinter) - try creating a filled rectangle on a canvas that updates each time increment.
Jan 5 '11 #2
thanks. i manage to find a way by using EasyDialog.
any comment on using EasyDialogs? is EasyDialog public license?
example:
Expand|Select|Wrap|Line Numbers
  1. import EasyDialogs
  2.  
  3.     meter = EasyDialogs.ProgressBar('Time Delay 30s...',
  4.                                 maxval=30,
  5.                                 label='Starting',
  6.                                 )
  7.     for i in xrange(1, 31):
  8.         phase = 'Time Elapse %ds' % i
  9.         #print phase
  10.         meter.label(phase)
  11.         meter.inc()
  12.         time.sleep(1)
  13.  
  14.     del meter
  15.     time.sleep(1)
Jan 6 '11 #3
bvdet
2,851 Expert Mod 2GB
Thanks for the post, maximus tee. I didn't know EasyDialogs existed. I found out it is distributed with Python on Macs. There is a windows version available here, covered by the MIT license.
Jan 6 '11 #4
i also found there is easyGUI (http://easygui.sourceforge.net/)
i havent try it out yet but soon.

thanks
maximus
Jan 6 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Scott Lundstrom | last post by:
I have a large amount of data I'm dropping into a dataset and would like to find a way to at the very least show the user that the program is working at retrieving the data and not locked up. I...
2
by: Bill Nguyen | last post by:
How can I create a shared function to display process progress that can be called from other routines within an application? Any example that I can follow? Thanks Bill
3
by: Ritesh Raj Sarraf | last post by:
Hi, I have a small application, written in Python, that uses threads. The application uses function foo() to download files from the web. As it reads data from the web server, it runs a progress...
8
by: WhiteWizard | last post by:
I guess it's my turn to ASK a question ;) Briefly my problem: I am developing a Windows app that has several User Controls. On one of these controls, I am copying/processing some rather large...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
15
by: eladla | last post by:
Hi! I am creating a composite control the does some of it`s own data access. I want to display a progress bar between the time the page is loaded and the control place holder is displayed and...
5
by: Aggelos | last post by:
Hello I am doing sevreral scripts like sending a newsletter that might take a while to finish first to prevent the browser from timing out and to keep the user informed of the process progress I...
4
by: pkp | last post by:
Can anyone please help me here how to create the progress bar on asp.net web application while I have other server side process running which saves the data on SQL server. I have got text box and I...
0
by: roanna | last post by:
How to create a progress bar that has a capacity to estimate the time when converting video. Every answer will be appreciate.. Thanks.. Need your help.
1
by: sameerdev | last post by:
I want to use progress bar in windows application. I know already, How to create progress bar but i don't know how to use when form is loading and take more time to load.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.