Serhiy Storchaka added the comment:
Fixed in issue15861. Thank you for report, Clayton Darwin.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
Changes by Serhiy Storchaka storch...@gmail.com:
--
superseder: - ttk.Treeview unmatched open brace in list
versions: +Python 2.7, Python 3.2, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
Jayden Kneller added the comment:
I also ran into this issue in python 3.3 64bit on windows 7. I was adding
paths into a combo box and was escaping all \'s myself. When I created a
folder with a space I noticed the paths with the space had double the \'s I
wanted.
I removed my escaping and
Jayden Kneller added the comment:
I should also add that I yellow highlighed where the space is in the image I
attached so it easier to see.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
Jayden Kneller added the comment:
On a side note:
If you pass raw string literals into the combo box as values this issue doesn't
happen.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
Serhiy Storchaka added the comment:
Issue15861 has a more general patch which fixes also this issue.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
___
Guilherme Polo ggp...@gmail.com added the comment:
Does the attached patch work for you ?
--
keywords: +patch
Added file: http://bugs.python.org/file21017/patch11290.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
Terry J. Reedy tjre...@udel.edu added the comment:
With 3.2, (Winxp) I get combobox with first line,
input as
r'C:\Python31\Lib\tkinter\test\test_ttk',
displayed as
C:Python31Lib kinter est est_ttk
Something either deleted \ or converted \t to tab.
Indeed, adding a space to the end of the
Clayton Darwin claytondar...@gmail.com added the comment:
This is a simple work around.
def fix_tcl_error(s):
if '\\' in s and not ' ' in s:
s = '{'+s+'}'
return s
You can get the text from the Combobox with no issues. The error is in posting
it to the Combobox when you
New submission from Clayton Darwin claytondar...@gmail.com:
In working with the ttk.Combobox (Windows XP, Python 3.1), I have found that
setting the values for the popdown using ttk.Combobox['values'] has an problem
converting the string to the proper Tcl value when (and this is the only
10 matches
Mail list logo