This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients bruno.dupuis, docs@python, gpolo, iarspider, serhiy.storchaka
Date 2012-11-30.14:49:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354286989.06.0.981549786717.issue10259@psf.upfronthosting.co.za>
In-reply-to
Content
I confirm this. The bug appears sporadically on 3.x.

When the entry displays text, self.entry1['textvariable'] is 'PY_VAR0'. When it does not, self.entry1['textvariable'] is '0' (actually the value of "text" parameter).

The bug is due to the fact that option "text" is applied after the option "textvariable". Due to string hash randomization it occurs in 50% on 3.3+ (and always or never on default 2.7, depending on other options used in this call). For work around this bug you should not use both "text" and "textvariable" keyword or dict parameters in one call. Probably it is worth to mention in the documentation (unfortunately the Tkinter documentation is almost non-existent).
History
Date User Action Args
2012-11-30 14:49:49serhiy.storchakasetrecipients: + serhiy.storchaka, gpolo, docs@python, iarspider, bruno.dupuis
2012-11-30 14:49:49serhiy.storchakasetmessageid: <1354286989.06.0.981549786717.issue10259@psf.upfronthosting.co.za>
2012-11-30 14:49:48serhiy.storchakalinkissue10259 messages
2012-11-30 14:49:48serhiy.storchakacreate