Awesome chat console using Textual
Project description
Nonechat
通用控制台聊天界面
使用
from nonechat.info import Event
from nonechat.app import Frontend
from nonechat.backend import Backend
class ExampleBackend(Backend):
def on_console_load(self):
print("on_console_load")
def on_console_mount(self):
print("on_console_mount")
def on_console_unmount(self):
print("on_console_unmount")
async def post_event(self, event: Event):
print("post_event")
app = Frontend(ExampleBackend)
app.run()
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
nonechat-0.2.1.tar.gz
(9.9 kB
view hashes)
Built Distribution
nonechat-0.2.1-py3-none-any.whl
(17.1 kB
view hashes)