473,487 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Progress Box or Bar in Windows

Hi guys,

I have a Python script that I've prettied-up for Windows users by adding
things like shell.SHBrowseForFolder and win32gui.MessageBox, etc. In
short, it looks like this:

1. Pretty window where user can browse for folder. (instead of typing
path into cmd prompt)

2. win32gui.MessageBox informing user the script will now begin.

3.

4. win32gui.MessageBox informing user the script has finished.

I left 3 blank. This is where I'd like to use some sort of progress
indicator (a box that says 'processing 3 of 30 files... 4 of 30, etc' or
a progress bar that moves across the screen as the script does its job.
Any ideas on how to do this quickly and easily (less than 20 lines of code)?

I'd prefer to stick with the win32 extensions, but I'd be willing to use
TK too if that would be simpler... and it looks like TK would be much
simpler :)

Thanks!

Dec 31 '06 #1
3 1727
Not that I want to suggest a completely different solution; however, I
have used:

http://www.averdevelopment.com/python/EasyDialogs.html

to add simple file open dialogs, message boxes, and progress bars to
many of my scripts.

You may want to have a look at it. It's easy to install and really
simple to use.

tubby wrote:
Hi guys,

I have a Python script that I've prettied-up for Windows users by adding
things like shell.SHBrowseForFolder and win32gui.MessageBox, etc. In
short, it looks like this:

1. Pretty window where user can browse for folder. (instead of typing
path into cmd prompt)

2. win32gui.MessageBox informing user the script will now begin.

3.

4. win32gui.MessageBox informing user the script has finished.

I left 3 blank. This is where I'd like to use some sort of progress
indicator (a box that says 'processing 3 of 30 files... 4 of 30, etc' or
a progress bar that moves across the screen as the script does its job.
Any ideas on how to do this quickly and easily (less than 20 lines of code)?

I'd prefer to stick with the win32 extensions, but I'd be willing to use
TK too if that would be simpler... and it looks like TK would be much
simpler :)

Thanks!
Dec 31 '06 #2
Go for wxPython, it'll fulfill all your GUI needs. Handsdown the best
GUI toolkit I ever ran into. It can't get much simpler than:

wx.MessageBox('hi')

And there are tons of readymade dialogs and progressbars in the
library. Check out the demo.py under the wxPython installation dir to
see demos (and source) of the enormous list of controls.

Dec 31 '06 #3
cyberco wrote:
Go for wxPython, it'll fulfill all your GUI needs. Handsdown the best
GUI toolkit I ever ran into.
Thanks a lot! I had no idea wxPython was so easy to use. I added a
progress bar from wx to the app. Less than 20 lines of code and it only
took about 5 minutes!
Dec 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
24963
by: Paul | last post by:
i have been working with vb6 for a while but never had the pleasure of using progress bars. That is until now, one of the programs i have written has just been modified so that large csv files of...
1
2115
by: Elliott B. | last post by:
We have been asigned a project required by our parent company to have our sales people fill out a form before billing any order to our customers. Our main system runs a Progress db, that's where...
2
2740
by: bob | last post by:
Hello, I want to show progress to the user while some method is running so I thought I'd use a progress bar. But I don't see how I can do this without writing GUI code in the model? In...
5
2119
by: James Morton | last post by:
I have a Static DataSet in a class file that I am using globally between a few forms. The main form populates the dataset through a menu option which invokes ReadXML in the class file to populate...
9
13590
by: Popoxinhxan | last post by:
Dear experts, i want to develop an client application that consume the google search web service. In my MainForm i have a method to retrieve all the search result e.g. GetGoogleResults(). Now i...
7
5369
by: Pepi Tonas | last post by:
I have a form that takes some time to load because it has to populate some Data. I was trying to display a form on top of it with an activity bar so that user can see that something's going on. ...
8
5175
by: Brian Henry | last post by:
I created a smooth progress bar with this code.. but if you update the values in a row quickly of it and watch it on screen it flickers... how would i change this to reduce the flickering?...
9
3253
by: esakal | last post by:
Hello, I'm programming an application based on CAB infrastructure in the client side (c# .net 2005) Since my application must be sequencally, i wrote all the code in the UI thread. my...
1
2137
by: BLUE | last post by:
I want to pass chunks of an xml file or an entire xml file to my WS. I'm surprised to see fro MSDN that no System.Xml class is serializable (XmlDocument, XmlElement and XmlNode): - I should use a...
1
1434
by: edinwoking | last post by:
Hi I have been struggling to get a toolbar to update its progress information from an event raised ina parallel for loop. I have tried using delegates to get it to work but it just hangs after...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
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
7181
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...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.