zlgopen / awtk-widget-shape

awtk-widget-shape

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

awtk-widget-shape

shape 控件。绘制各种基本图形。

准备

  1. 获取 awtk 并编译
git clone https://github.com/zlgopen/awtk.git
cd awtk; scons; cd -

运行

  1. 生成示例代码的资源
python scripts/update_res.py all

也可以使用 Designer 打开项目,之后点击 “打包” 按钮进行生成; 如果资源发生修改,则需要重新生成资源。

如果 PIL 没有安装,执行上述脚本可能会出现如下错误:

Traceback (most recent call last):
...
ModuleNotFoundError: No module named 'PIL'

请用 pip 安装:

pip install Pillow
  1. 编译
  • 编译PC版本
scons
  • 编译LINUX FB版本
scons LINUX_FB=true

完整编译选项请参考编译选项

  1. 运行
./bin/demo

文档

About

awtk-widget-shape

License:GNU Lesser General Public License v2.1


Languages

Language:C 72.3%Language:Python 18.1%Language:C++ 8.2%Language:Shell 1.4%