Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #63640 > unrolled thread
| Started by | Michael Torrie <torriem@gmail.com> |
|---|---|
| First post | 2014-01-09 23:19 -0700 |
| Last post | 2014-01-09 23:19 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Re : Python GTK GUI struck when process is going on. Michael Torrie <torriem@gmail.com> - 2014-01-09 23:19 -0700
| From | Michael Torrie <torriem@gmail.com> |
|---|---|
| Date | 2014-01-09 23:19 -0700 |
| Subject | Re: Re : Python GTK GUI struck when process is going on. |
| Message-ID | <mailman.5291.1389334785.18130.python-list@python.org> |
On 01/09/2014 08:15 AM, MRAB wrote: > On 2014-01-09 11:53, Prapulla Kumar wrote: >> Hi all, >> I'm using python gtk to upload file to S3 service by boto API , >> GUI struck when uploading file and releases the GUI after completed download >> I'm using thread to show progress of upload in GUI but it struck. >> Can you some suggestion how to show progress of upload in GUI or any >> spinner until upload finish >> > You say that you're using a thread to show the progress. Does that mean > that you're doing the uploading in the main thread? > > If yes, then that's the wrong way round. It's the uploading that needs > to be done in the background thread. And you can post update messages from the thread using a queue of some kind. The GUI just has to have a timeout that checks the queue and updates the gui with messages (percent complete, bytes transferred, etc). Or have the thread use gobject.idle_add to schedule a callback in the main thread that will check on the upload status and update the GUI.
Back to top | Article view | comp.lang.python
csiph-web