python import toga def button_handler(widget): print("Hello, World!") def build(app): button = toga.Button('Click me', on_press=button_handler) box = toga.Box(children=[button]) return box app = toga.App("Hello World", "org.example.helloworld", startup=build) app.main_loop()


上一篇:
下一篇:
切换中文