Re: [Pythonmac-SIG] Progressbar in tkinter app

2011-07-15 Thread Aahz
On Fri, Jul 15, 2011, Dan Ross 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. http://pythoncraft.com/OSCON2001/FibThreaded.py -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.c

Re: [Pythonmac-SIG] Progressbar in tkinter app

2011-07-15 Thread Dan Ross
Really? All that just to make a progress bar go and update something in the main GUI window? Yeesh. On Fri, 15 Jul 2011 10:20:44 -0700, Sean DiZazzo wrote: 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 fin

Re: [Pythonmac-SIG] Progressbar in tkinter app

2011-07-15 Thread Sean DiZazzo
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

[Pythonmac-SIG] Progressbar in tkinter app

2011-07-15 Thread Dan Ross
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 separ

Re: [Pythonmac-SIG] Converting python for CoreGraphics

2011-07-15 Thread Ronald Oussoren
On 13 Jul, 2011, at 4:00, Jim Skibbie wrote: > I have a python script that takes a PDF file and returns the width and height > of the document's first page. When I moved this to Snow Leopard, I have to > run this in 32-bit mode or I can an error: > File > "/BinaryCache/CoreGraphicsBindings/Cor