in reply to Re^5: Tk and Threads
in thread Tk and Threads
With a restart I mean undoing everything the thread has done and then starting it again.
I have a TK Gui. The user is pressing the start button. Then a long action is started (in a thread). There is also a cancel button. If the user is pressing the cancel button then the long action shall be stopped immediately. Everything what has been done until now shall be undone (e.g. deleting a file which was created by this thread). When the user then again is pressing the start button the long action shall be started again. Because there are a lot of other GUI-Elements which contain information for the thread a new pressing of the start button has to give this information to thread.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Tk and Threads
by BrowserUk (Patriarch) on Dec 22, 2010 at 12:27 UTC | |
by Dirk80 (Pilgrim) on Dec 22, 2010 at 12:40 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2010 at 12:51 UTC | |
by zentara (Cardinal) on Dec 22, 2010 at 12:54 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2010 at 13:16 UTC | |
| |
by zentara (Cardinal) on Dec 22, 2010 at 12:49 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2010 at 13:11 UTC | |
by zentara (Cardinal) on Dec 22, 2010 at 20:10 UTC |