|
楼主 |
发表于 2022-6-17 16:42
|
显示全部楼层
9、运行测试程序
- #【花雕体验】07 搭建行空板开发环境之VSCode编程
- #测试程序:屏幕显示“你好,行空板”
- # -*- coding: UTF-8 -*-
- from unihiker import GUI
- import time
- gui = GUI()
- #unihiker库文字显示
- gui.draw_text(text="花雕体验",origin="center",x=120,y=100,color="#0066CC")
- gui.draw_text(text="你好,行空板",origin="center",x=120,y=150,color="#0066CC")
- gui.draw_text(text="搭建VS Code环境",origin="center",x=120,y=190,color="#0066CC")
- while True:
- #保持程序运行
- time.sleep(1)
复制代码
|
|