title: Creating Python Tkinter exe file with Pyinstaller problem
body: <p>I have created GUI python2.7 program with Tkinter successfully without error. Now I want to make an executable file of it using pyinstaller in anaconda environment (I'm using windows 10). </p>
  
  <p>Using this command 
  <code>pyinstaller --onefile main.py</code> I am able to create exe file successfully in dist folder. But when I tried to run the exe file, it showed error : </p>
  
  <pre><code>Traceback (most recent call last):   
  File "main.py", line 333, in &lt;module&gt;   
  File "main.py", line 90, in __init__   
  File "lib-tk\ttk.py", line 715, in current
  _tkinter.TclError: Index 0 out of range 
  [22668] Failed to execute script main
  </code></pre>
  
  <p>Is the problem related to tkinter? I've tried the solution here : <a href="https://stackoverflow.com/questions/44528665/problems-with-pyinstaller-with-tkinter-app-on-python-3-5">Problems with Pyinstaller with tkinter app on python 3.5</a> and here : <a href="https://stackoverflow.com/questions/47380748/how-to-make-pyinstaller-import-the-ttk-theme">How to make pyinstaller import the ttk theme?</a> . But still same error</p>