<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<p>Hi,</p>
<p> </p>
<p>I am new to Paraview and developing a paraview plugin. From plugin, I am executing a python script using pqPythonManager. 
</p>
<p><em>        pqPythonManager *pm = pqPVApplicationCore::instance()->pythonManager();<br>
        pm->executeScript("button.py");</em></p>
<p><em></em> </p>
<p>From script, I am trying to create gui button. Scripy snippet is below:</p>
<p> </p>
<p><em>        import os<br>
        import sys<br>
        import Tkinter<br>
        import tkMessageBox</em></p>
<p><em></em> </p>
<p><em>        top = Tkinter.Tk()</em></p>
<p><em>        def helloCallBack():<br>
           tkMessageBox.showinfo( "Hello Python", "Hello World")</em></p>
<p><em>        </em></p>
<p><em>        B = Tkinter.Button(top, text ="Hello", command = helloCallBack)</em></p>
<p><em>        B.pack()<br>
        top.mainloop()</em></p>
<p><em></em> </p>
<p>During run, I am getting below error (at <em>top = Tkinter.Tk())</em></p>
<p> </p>
<p>----------------------------------------------------</p>
<p><strong>Traceback (most recent call last):<br>
  File "<string>", line 6, in <module><br>
  File "<install-dir>/bin/Python/lib/python2.7/lib-tk/Tkinter.py", line 1764, in __init__<br>
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)<br>
_tkinter.TclError: Can't find a usable init.tcl in the following directories:<br>
    /opt/anaconda1anaconda2anaconda3/lib/tcl8.5 <install-dir>/paraview/lib/lib/tcl8.5 <install-dir>/paraview/lib/tcl8.5 <install-dir>/paraview/lib/library <install-dir>/paraview/library <install-dir>/paraview/tcl8.5.15/library <install-dir>/paraview/tcl8.5.15/library</strong></p>
<p><strong></strong> </p>
<p><strong>This probably means that Tcl wasn't installed properly.</strong></p>
<p><strong>-----------------------------------------------</strong></p>
<p><strong></strong> </p>
<p>I could find init.tcl in directory <install-dir>/bin/Python/lib/python2.7/lib/tcl8.5, where system is not looking for.
</p>
<p> </p>
<p>Can somebody please help with this error? Do I need to set tcl path somewhere?</p>
<p>Thanks a lot in advance.<br>
 </p>
<p>-Prashant</p>
</div>
---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message.
 Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to
 contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. -----------------------------------------------------------------------------------
</body>
</html>