By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,846 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,846 IT Pros & Developers. It's quick & easy.

How to create progress bar?

P: 30

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.

Jan 5 '11 #1
Share this Question
Share on Google+
4 Replies

Expert Mod 2.5K+
P: 2,851
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

P: 30
thanks. i manage to find a way by using EasyDialog.
any comment on using EasyDialogs? is EasyDialog public license?
Expand|Select|Wrap|Line Numbers
  1. import EasyDialogs
  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)
  12.         time.sleep(1)
  14.     del meter
  15.     time.sleep(1)
Jan 6 '11 #3

Expert Mod 2.5K+
P: 2,851
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

P: 30
i also found there is easyGUI (
i havent try it out yet but soon.

Jan 6 '11 #5

Post your reply

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