<div dir="ltr"><div><div>Hi:</div><div><br></div><div>I'm having issues with tkinter, COM servers and Python 3.4.   I can't call tkinter inside a COM server.   I tried many examples of tkinter, but every time I try to init a tkniter instance (  tk = tkinter.Tk()  )  inside a running COM server, the same following error arises:</div><div><br></div><div>'''</div><div>....</div><div>....</div><div> tk = Tk()</div><div>  File "C:\Python34\Lib\tkinter\__init__.py", line 1851, in __init__</div><div>    <a href="http://self.tk" target="_blank">self.tk</a> = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)</div><div>TypeError: must be str, not bytes</div><div>'''</div><div>Of course the Traceback is much larger, but I intentionally posted the same 5 last lines in order to show where in the __init__ file raises the error.  I have tried outside the COM server the same tkinter examples and they work perfectly.</div><div><br></div><div>However, this is not the case with Python 2.7.9.  All tkinter examples work perfectly inside and outside the COM server.</div><div><br></div><div>I've intensely searched in the web about this specific subject with no luck.</div><div><br></div><div>Question:  Is perhaps needed some setup in order to use tkinter inside a COM server while in Python 3.x?   ...or this may be a bug specifically of Python 3.4?</div></div><div><br clear="all"><div>Best regards,</div><div><br></div>-- <br><div>Diego Vélez Torres<br><a href="mailto:divelez69@gmail.com" target="_blank">divelez69@gmail.com</a><br>Teléfono: 098 28 57 58<br>Cuenca, Ecuador<br></div>
</div></div>