UI 模块

模块: borax.ui

aiotk:异步支持

使用方法:

  1. import tkinter as tk
  2. import asyncio
  3. from borax.ui.aiotk import run_loop
  4. class App(tk.Tk):
  5. def __init__(self):
  6. super().__init__()
  7. self.title('Async Demo')
  8. app = App()
  9. loop = asyncio.get_event_loop()
  10. loop.run_until_complete(run_loop(app))