title: python simple thread not working
body: <p>I'm trying to use a new thread or multiprocessing to run a function.</p>
  
  <p>The function is called like this:</p>
  
  <pre><code>Actualize_files_and_folders(self)
  </code></pre>
  
  <p>i've read alot about multiprocessing and threads, and looking the questions at StackOverflow but i can't make it work... It would be great to have some help >.&lt;</p>
  
  <p>im calling the function with a button.</p>
  
  <pre><code>def on_button_act_clicked(self, menuitem, data=None):
  
       self.window_waiting.show()
  
       Actualize_files_and_folders(self)
  
       self.window_waiting.hide()
  </code></pre>
  
  <p>In the waiting_window i have a button called 'cancel', it would be great if i can have a command/function that kills the thread.</p>
  
  <p>i've tryed a lot of stuff, for exemple:</p>
  
  <pre><code>self.window_waiting.show()
  from multiprocessing import Process
  a=Process(Target=Actualize_files_and_folders(self))
  a.start()
  a.join()
  self.window_waiting.hide()
  </code></pre>
  
  <p>But the window still freezing, and window_waiting is displayed at the end of Actualize_files_and_folders(self), like if i had called a normal function.</p>
  
  <p>Thanks so much for any help!!</p>