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. Advertising

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

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

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. Replies:
    2
    Views:
    429
  2. Nicolas Weidmann
    Replies:
    2
    Views:
    439
    Maxim Yegorushkin
    Aug 7, 2005
  3. Mark Tarver
    Replies:
    22
    Views:
    1,319
    J Kenneth King
    Apr 26, 2009
  4. Peter
    Replies:
    34
    Views:
    1,944
    James Kanze
    Oct 17, 2009
  5. Iñaki Baz Castillo
    Replies:
    1
    Views:
    191
    Iñaki Baz Castillo
    Apr 15, 2008
Loading...

Share This Page