Tkinter - Text - bullets
Thomas Lehmann
Iris-und-Thomas-Lehmann at T-Online.de
Tue Sep 22 01:45:43 EDT 2009
> This is probably why you had all these alignment problems. But it's
> weird, because the script I posted is copied and pasted from a really
> script that I've run, and which doesn't cause any error. What is the
> version of tcl/tk used by your Tkinter module? And what is your Python
> version?
Using python 2.5 (with Tcl/Tk 8.4):
Traceback (most recent call last):
File "Text1.py", line 10, in <module>
txt.tag_configure('bulleted_list', font=('Times', 18),
lmargin1='10m', lmargin2='15m', tabs=['15m'])
File "E:\Python25\lib\lib-tk\Tkinter.py", line 3066, in
tag_configure
return self._configure(('tag', 'configure', tagName), cnf, kw)
File "E:\Python25\lib\lib-tk\Tkinter.py", line 1188, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
_tkinter.TclError: bad screen distance "['15m']"
More information about the Python-list
mailing list