sync pyglet update

This commit is contained in:
shenjack 2023-05-14 01:40:10 +08:00
parent 582ce53c8a
commit 08e2ae9ae2
2 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import sys
from typing import TYPE_CHECKING
#: The release version
version = '2.0.6'
version = '2.0.7'
__version__ = version
MIN_PYTHON_VERSION = 3, 8

View File

@ -370,7 +370,7 @@ class TextEntry(WidgetBase):
"""
def __init__(self, text, x, y, width,
color=(255, 255, 255, 255), text_color=(0, 0, 0, 255), caret_color=(0, 0, 0),
color=(255, 255, 255, 255), text_color=(0, 0, 0, 255), caret_color=(0, 0, 0, 255),
batch=None, group=None):
"""Create a text entry widget.
@ -387,8 +387,9 @@ class TextEntry(WidgetBase):
The color of the outline box in RGBA format.
`text_color` : (int, int, int, int)
The color of the text in RGBA format.
`caret_color` : (int, int, int)
The color of the caret in RGB format.
`caret_color` : (int, int, int, int)
The color of the caret when it is visible in RGBA or RGB
format.
`batch` : `~pyglet.graphics.Batch`
Optional batch to add the text entry widget to.
`group` : `~pyglet.graphics.Group`