[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



[issue6549] ttk.Style not translating some Tcl options

2011-02-22 Thread Clayton Darwin

Clayton Darwin claytondar...@gmail.com added the comment:

I have been working with the ttk module (Windows XP, Python 3.1) and have 
encountered some specific issues with ttk.Style() not fully propagating the 
style into the widget.  In my particular case, there seem to be issues with 
setting style in TCombobox and TEntry.  The biggest issue is that you can't 
change the style of the ttk.Combobox popdown.  Style can be set in the top 
window, but not using all methods, but nothing works for the popdown. 

I have included an example script that illustrates the issues I have 
encountered.

Clayton

--
nosy: +claytondarwin
Added file: http://bugs.python.org/file20841/ttk_combobox_test.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6549
___
___
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