Closed Tuxt closed 2 years ago
Hi there. In the later versions we support passing a two-tuple to specify substrings, rather than a slice-like string. This is done in order to eliminate possible ambiguity. For example, by directly replacing "[0:4]"
with (0, 4)
should make the code work.
Describe the bug
The
t2c
attribute ofText
does not work with slices. While it does work by specifying specific words.Code:
Wrong display or Error traceback: While in
version 1.5.1
the colors of all the texts are displayed correctlyhttps://user-images.githubusercontent.com/5247088/193715287-08ce5d1c-3885-4c34-9657-948aba65bee0.mp4
In
versions 1.6.0
and1.6.1
the central text appears in whitehttps://user-images.githubusercontent.com/5247088/193715373-bfed7ac0-f0f6-4cbb-a067-6b0afd21e347.mp4
Additional context
I'm using Windows 10. Tested on a conda environment using python
3.8.13
and3.9.13
.