title: Python 2.7, Multiprocessing and Tkinter
body: <p>I am trying to create a class that launches a tkinter form from a new instance of python using multiprocessing.  </p>
  
  <p>My question is this: What would be the recommended way of passing the Tkinter class object to the multiprocessing function?  When I normally pass objects to the multiprocessing pool, I have to convert the objects to string.  Does this mean I have to pickle the class?  Is there a better way to do this?</p>
  
  <p>I cannot using threading because some of the python packages I have to use are not thread safe.. :(</p>
  
  <p>Sample Code:</p>
  
  <pre><code>import Tkinter as Tk
  
  ########################################################################
  class TkinterApp(object):
      """"""
  
      #----------------------------------------------------------------------
      def __init__(self, parent):
          """Constructor"""
  
          self.root = parent
          self.root.title("Main frame")
          self.frame = Tk.Frame(parent)
          self.frame.pack()
  
          btn = Tk.Button(self.frame, text="Close Frame", command=self.hide)
          btn.pack()
  
      #----------------------------------------------------------------------
      def hide(self):
          """"""
          self.root.withdraw()
  </code></pre>
  
  <p>System Specs:</p>
  
  <ul>
  <li>Windows 7 </li>
  <li>Python 2.7.5 32-bit</li>
  </ul>
  
  <p>Any suggestions or feedback is very welcome!</p>
  
  <p>Thank you</p>