pyguiadapter.adapter.utoast
模块级方法
show_toast(message: str, duration: int = 3000, config: Optional[ToastConfig] = None, clear: bool = False) -> None
展示toast消息。
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message |
str
|
toast消息内容 |
required |
duration |
int
|
toast显示时间,单位为毫秒 |
3000
|
config |
Optional[ToastConfig]
|
toast配置 |
None
|
clear |
bool
|
是否清除之前的toast消息 |
False
|
Returns:
Type | Description |
---|---|
None
|
无返回值 |
clear_toasts() -> None
清除所有toast消息。
Returns:
Type | Description |
---|---|
None
|
无返回值 |