Skip to content

Commit 7032330

Browse files
committed
更新demo和readme
1 parent a85ed68 commit 7032330

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
目前被[CamMoitor](https://github.com/SystemFileB/CamMonitor_Server)使用
44

55
## 📦安装
6+
```shell
7+
$ pip install mctoast pillow //现在我还没有上传pypi,你可以试试手动构建,或出门右转github action
8+
$ pip install mctoast-1.0-py3-none-any.whl pillow //现在先用这个
69
```
7-
$ pip install mctoast //现在我还没有上传pypi,你可以试试手动构建,或出门右转github action
8-
$ pip install mctoast-1.0-py3-none-any.whl //现在先用这个
9-
```
10+
我现在还不知道怎么实现自动安装pillow作为依赖😅,你只能手动装了 ()
1011

1112
## 🖼️画廊
1213
原版效果:

demo/test.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# 注意:这个文件夹的1.png来自Minecraft Wiki,相关的版权归Mojang Studios所有
22

3-
import mctoast
3+
import mctoast,time
44
mctoast.init()
55
mctoast.new_toast(mctoast.ADVANCEMENT,"1.png",text1="进度已达成!",text2="甜蜜的梦") #后面的建议用关键字传参
6+
time.sleep(5)
7+
mctoast.new_toast(mctoast.RECIPE,"1.png",text1="配方已解锁!",color1="green",text2="请检查你的配方书",color2="black")
8+
time.sleep(5)
9+
for i in range(20):
10+
mctoast.new_toast(mctoast.SYSTEM,text1="通知",text2="OHHHHHHHHHHHH")
11+
time.sleep(0.5)
612
mctoast.wait_no_toast() #实际使用中可能不会使用

0 commit comments

Comments
 (0)