Enhance | doc
This commit is contained in:
parent
6f3ff2fddc
commit
f3f5dc796e
@ -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
|
||||
用于在调用窗口函数后调用指定函数 的装饰器
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user