Enhance | doc

This commit is contained in:
shenjack 2023-10-08 22:58:11 +08:00
parent 6f3ff2fddc
commit f3f5dc796e
Signed by: shenjack
GPG Key ID: 7B1134A979775551
3 changed files with 26 additions and 3 deletions

View File

@ -138,9 +138,9 @@ def pyglet_load_fonts_folder(folder) -> None:
def _call_back(call_back: Callable) -> Callable:
"""
>>> def call_back():
>>> def call_back_example():
>>> pass
>>> @_call_back(call_back)
>>> @_call_back(call_back_example)
>>> def on_draw(self):
>>> pass
用于在调用窗口函数后调用指定函数 的装饰器

View File

@ -58,7 +58,6 @@ key_type = Union[str, int, Hashable]
class Translates:
name = 'Translate'
def __init__(self, value: Union[Dict[str, Any], list, tuple, str],
config: Optional[TranslateConfig] = None,

View File

@ -5,6 +5,30 @@
- DR sdk: 0.8.7.0
- DR api: 0.1.1.0
## Draft DR sdk 0.8.7.2
### Add
- `assets/fonts`
- `unifont.otf`
- `unifont v 15.1.02`
### Translate key
- Add
- `client`
- `load.font`
- `start`
- `file`
- `error`
- `use_time`
### Enhance
- `client.pyglet_load_fonts_folder`
- 现在使用 `os.walk` 遍历文件夹
- 使用 `tr` 进行日志记录
## DR sdk 0.8.7.1
### Add