[python-win32] Issues with tkinter, COM servers and Python 3.x
Tim Roberts
timr at probo.com
Tue May 19 19:31:06 CEST 2015
Diego Vélez Torres wrote:
>
> The VALUES were an empty string and an empty bytes respectively.
>
> Before applying your advise, I put some 'prints' in order to
> understand what is happening to 'baseName' variable. What I found was
> that when I initiate an instance of tkinter app: app = tkinter.Tk()
> outside a COM object (eg. directly from the interactive window), the
> value was '' (I mean an empty string). The same code, but called from
> a COM the value was a b'' (an empty variable of the type bytes). I
> don't know if I'm answering your question. I hope I do.
Absolutely, yes. Thanks. I have to think this is a bug in the Python
COM interface layer, injecting a value into sys.argv without
implementing the Python 3 string changes. I don't see the problem in 5
minutes of perusal, but we should get this on a bug list.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list