[Tkinter-discuss] Get value instead of PY_VAR

Carlos Zuniga carlos.zun at gmail.com
Fri Nov 15 19:33:45 CET 2013


Hi,

On Thu, Nov 14, 2013 at 11:03 AM, Kevin Walzer <kw at codebykevin.com> wrote:
>
> I can actually get the correct value if I change one call as follows:
>
> self.defaults['copytext'] = self.copytext.get()
>
> But then, trying to pickle this value, I get this error:
>
> 'str' object has no attribute 'get'
>

It looks like at some other place in your code you do something like

    self.copytext = 'foo'

Instead of

    self.copytext.set('foo')


Try checking for that.

-- 
Carlos


More information about the Tkinter-discuss mailing list