[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2013-01-15 Thread Serhiy Storchaka

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2012-12-12 Thread Serhiy Storchaka

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2012-12-11 Thread Jayden Kneller

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 tested the patch and the attached image shows that it 
works.  The top of the image was before, the bottom of the image was after.

--
nosy: +PendulumDreams
versions:  -Python 3.1, Python 3.2
Added file: http://bugs.python.org/file28284/tested_patch.png

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



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2012-12-11 Thread Jayden Kneller

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2012-12-11 Thread Jayden Kneller

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2012-12-11 Thread Serhiy Storchaka

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-03-06 Thread Guilherme Polo

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-25 Thread Terry J. Reedy

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 string or enclosing as you specify 
inhibits deletion/conversion, so this seems like an error.

With imports fixed
from Tkinter import *
import ttk
the file runs fine in 2.7, so this seems 3.x specific problem.

--
nosy: +gpolo, terry.reedy
versions: +Python 3.2, Python 3.3

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



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-25 Thread Clayton Darwin

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 have backslashes and no spaces (I think).  I have 
just been running everything through this def before adding it.  It has worked 
with no problems so far using Windows paths and grep-type search strings.

CD

--

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



[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-02-22 Thread Clayton Darwin

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 
instance I have found) there is a backslash in the string but no spaces.  In 
this case, the string will translate if it is enclosed in curly brackets 
'{'+mystring+'}', which I believe is the Tcl syntax to not make substitutions.

I have attached a short script that illustrates this issue.

Clayton

--
components: Tkinter
files: tcl_string_test.py
messages: 129097
nosy: claytondarwin
priority: normal
severity: normal
status: open
title: ttk.Combobox['values'] String Conversion to Tcl
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file20843/tcl_string_test.py

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