Thread handling issue

Discussion in 'Python' started by Paul, Oct 7, 2011.

  1. Paul

    Paul Guest

    I'm wondering what the best solution for this problem is.

    I've got a wxpython app, in one part a user makes some selections then opens a
    dialog to select where to output. At which point the app starts a thread
    processing their selection while they're choosing an output location, hopefully
    ready for when they're done.

    My problem is if the user doesn't select an output location and cancels the
    dialog to go back to the selection I want to terminate the thread to avoid the
    user opening and closing the output selection firing off a ton of threads.

    As there's no inbuilt way of killing threads I was wondering the best way to
    prevent this?
     
    Paul, Oct 7, 2011
    #1
    1. Advertisements

  2. TRY to get BOA with wxpython! Please check the example for the UI part in BOA.
     
    88888 dihedral, Oct 9, 2011
    #2
    1. Advertisements

  3. TRY to get BOA with wxpython! Please check the example for the UI part in BOA.
     
    88888 dihedral, Oct 9, 2011
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles A. Lackman

    Terminating a thread from the main thread

    Charles A. Lackman, Dec 9, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,771
    Herfried K. Wagner [MVP]
    Dec 9, 2004
  2. Replies:
    2
    Views:
    508
  3. Nicolas Weidmann
    Replies:
    2
    Views:
    516
    Maxim Yegorushkin
    Aug 7, 2005
  4. Lars Uffmann
    Replies:
    6
    Views:
    915
    Lars Uffmann
    Mar 13, 2008
  5. Mark Tarver
    Replies:
    22
    Views:
    1,686
    J Kenneth King
    Apr 26, 2009
  6. Peter
    Replies:
    34
    Views:
    2,432
    James Kanze
    Oct 17, 2009
  7. Iñaki Baz Castillo
    Replies:
    1
    Views:
    476
    Iñaki Baz Castillo
    Apr 15, 2008
  8. Pen Ttt
    Replies:
    6
    Views:
    189
    Robert Klemme
    Aug 27, 2010
Loading...