Skip to main content

把Minecraft的Toast带到现实里!

Project description

🍞mctoast

一个基于tkinter的,用于显示minecraft风格的toast的库
目前被CamMoitor使用

📦安装

# 从PyPI上安装
$ pip install mctoast
# 安装快照 (请将后面的路径换为实际的)
$ pip install /path/to/mctoast-wheel.whl

🖼️画廊

原版效果:
原版

mctoast模仿的效果:
mctoast

⚙️使用方法

见wiki

⚠️版权信息

  • 这个库与Mojang,Microsoft没有任何关系,且在正式的库中(我在示范中使用了红色床的图片)不使用client.jar,.minecraft/assets文件夹下的任何文件
  • Toast纹理来自VanillaXBR,基于CC-BY-NC-4.0许可证
  • 字体使用了GNU Unifont,基于GPLv2许可证
  • 若遇到了相关的许可证问题,请第一时间提交issue并加上 版权或许可证问题 标签

📰更新日志

1.11.2

  • 紧急修复:setup.py并没有包含__init__.py__main__.py文件,导致无法使用
  • 重新加入1.11的更改

1.11.1

  • 紧急修复:撤回1.11的更改

1.11

  • 允许你直接运行mctoast,而非python -m mctoast

1.10.2

  • 因为PyPI无法上传同一个版本的库,我又更改了这个库的README,所以我改了版本号

1.10.1

  • 紧急修复:mctoast.init()报错

1.10

  • 库的修改
    • generate_image添加了默认值
    • generate_image(return_mode=RETURN_BYTE)修复,现在返回的就是正常的图片字节
    • 加入generate_image(return_mode=RETURN_SAVETIFILE,filename="awasome.png")语法,可以将图片保存为文件了
    • 加入generate_image(resize=False),在new_toast里使用的时候这个值为True,你一般不用修改,除非你也要把它缩放到320x64
  • 允许你使用python -m mctoast生成toast图片或弹出toast
  • 据说执行 python -m mctoast --moo 有彩蛋,你要不要试试

  • 移除了Herobrine (

1.01

  • 修复:进度图片显示不正常

1.00

  • 第一次发布

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mctoast-1.11.2.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mctoast-1.11.2-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file mctoast-1.11.2.tar.gz.

File metadata

  • Download URL: mctoast-1.11.2.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for mctoast-1.11.2.tar.gz
Algorithm Hash digest
SHA256 3e37887e86bbb0377c3ea3a3ed7fef98de712a364399468f8114f3628ce3a970
MD5 7d64b77d77389324a4aa446dfbfc6f8c
BLAKE2b-256 4a95cd7ba90c55df1dd175c02651d169f452d3c796d6808170576bfc29220e5f

See more details on using hashes here.

File details

Details for the file mctoast-1.11.2-py3-none-any.whl.

File metadata

  • Download URL: mctoast-1.11.2-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for mctoast-1.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 619493ee3630af582977aaf57d316aa8494f69c799265055b8f49c942a1fd776
MD5 b9969ad1f13c6802cdc1b465c11367d1
BLAKE2b-256 222cbd075ba586b53dbe12f4578b4c4614cc9847cfae42b8f7e1ead6a29c9c8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page