[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2012-11-30 Thread Bruno Dupuis

Bruno Dupuis added the comment:

Thank you for the review, Guilherme.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2012-11-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> So specifying "text" and "textvariable" is the same for tk.

Thanks for clarifying.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2012-11-30 Thread Guilherme Polo

Guilherme Polo added the comment:

Calm down for a moment. This is just incorrect usage of Entry. There is no 
"text" parameter documented for this class (see its docstring, for a quick 
reference on that). Also, there is a lot of Tkinter documentation, the official 
one at can be found at  http://docs.python.org/2/library/tkinter.html, which 
includes links for further documentation.

This is actually unrelated to string hash randomization, it is only barely 
related to the unordered nature of the hash implementation. What actually 
happens is that the tk lib usually accepts abbreviations of parameter names. So 
specifying "text" and "textvariable" is the same for tk.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2012-11-30 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
components: +Tkinter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2012-11-30 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

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).

--
assignee:  -> docs@python
components: +Documentation -Tkinter
nosy: +docs@python, serhiy.storchaka
stage:  -> needs patch
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2012-11-30 Thread Bruno Dupuis

Bruno Dupuis added the comment:

I updated the script to 3k. Now the behaviour is very odd :

Python 2.7: works only if `justify="right"` is commented out.

Python 3.3: Shroedinger-like behaviour (sometimes dead, sometimes alive, nobody 
knows before we check) whith `justify="right"`

Looks like some kind of race-condition or something, so this results may only 
be relevant on my hardware (2 yo low-end PC).

I'm not a tkinter expert, so even if the app code looks good I need someone 
that knows tk to double-check if there is some oddities in the script before we 
go further.

--
nosy: +bruno.dupuis, gpolo
versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6
Added file: http://bugs.python.org/file28163/Project5_3k.py

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2010-11-01 Thread Ivan Razumov

Ivan Razumov  added the comment:

The bug doesn't seem to be Windows-specific - tested on Ubuntu 10.10 (Python 
2.6.6)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2010-10-30 Thread Ivan Razumov

Ivan Razumov  added the comment:

Typo: align -> Justify

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10259] Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

2010-10-30 Thread Ivan Razumov

Changes by Ivan Razumov :


--
title: Entry text not set if all of 'Font', 'Foreground' and 'Align' are set -> 
Entry text not set if all of 'Font', 'Foreground' and 'Justify' are set

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com