You need a separate thread. Well, you might be able to get the progressbar to update, but your app will be unresponsive until the task finishes.
Here's the article I used to learn: http://uucode.com/texts/pylongopgui/pyguiapp.html It's a little overly complicated but works very well. ~Sean On Fri, Jul 15, 2011 at 9:17 AM, Dan Ross <d...@rosspixelworks.com> wrote: > I'm working on a tkinter gui for an app I made. > > I can't seem to get a progressbar to start and stop while a function runs. > > (pseduo-code) > > def my_function(): > progress_bar.start() > ##### do a bunch of stuff ##### > progress_bar.stop() > > That should work shouldn't it? Or do I need a separate thread? > > Thanks all, > > Dan > > > ______________________________**_________________ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > http://mail.python.org/**mailman/listinfo/pythonmac-sig<http://mail.python.org/mailman/listinfo/pythonmac-sig> > unsubscribe: > http://mail.python.org/**mailman/options/Pythonmac-SIG<http://mail.python.org/mailman/options/Pythonmac-SIG> >
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG