1394 views|2 replies

6818

Posts

11

Resources
The OP
 

[Mill MYB-YT507 development board trial experience] Install tkinter development environment [Copy link]

 

I originally planned to use pyqt or pyside for programming, but I tried many methods and couldn't get it done. Finally, I tried it successfully with tkinter. Now I share it as follows:

1. Install tkinter:root@myir:~# apt install python3-tk

正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
将会同时安装下列软件:
  blt libtcl8.6 libtk8.6 libxss1 tk8.6-blt2.5
建议安装:
  blt-demo tcl8.6 tk8.6 tix python3-tk-dbg
下列【新】软件包将被安装:
  blt libtcl8.6 libtk8.6 libxss1 python3-tk tk8.6-blt2.5
升级了 0 个软件包,新安装了 6 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 1,984 kB 的归档。
解压缩后会消耗 8,749 kB 的额外空间。
您希望继续执行吗? [Y/n] y
获取:1 http://mirrors.ustc.edu.cn/ubuntu-ports bionic/main arm64 libxss1 arm64 1:1.2.2-1 [7,968 B]
获取:2 http://mirrors.ustc.edu.cn/ubuntu-ports bionic/main arm64 libtcl8.6 arm64 8.6.8+dfsg-3 [781 kB]
获取:3 http://mirrors.ustc.edu.cn/ubuntu-ports bionic/main arm64 libtk8.6 arm64 8.6.8-4 [615 kB]
获取:4 http://mirrors.ustc.edu.cn/ubuntu-ports bionic/main arm64 tk8.6-blt2.5 arm64 2.5.3+dfsg-4 [478 kB]
获取:5 http://mirrors.ustc.edu.cn/ubuntu-ports bionic/main arm64 blt arm64 2.5.3+dfsg-4 [4,944 B]
获取:6 http://mirrors.ustc.edu.cn/ubuntu-ports bionic/main arm64 python3-tk arm64 3.6.5-3 [97.4 kB]
已下载 1,984 kB,耗时 1秒 (3,607 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
正在选中未选择的软件包 libxss1:arm64。
(正在读取数据库 ... 系统当前共安装有 69934 个文件和目录。)
正准备解包 .../0-libxss1_1%3a1.2.2-1_arm64.deb  ...
正在解包 libxss1:arm64 (1:1.2.2-1) ...
正在选中未选择的软件包 libtcl8.6:arm64。
正准备解包 .../1-libtcl8.6_8.6.8+dfsg-3_arm64.deb  ...
正在解包 libtcl8.6:arm64 (8.6.8+dfsg-3) ...
正在选中未选择的软件包 libtk8.6:arm64。
正准备解包 .../2-libtk8.6_8.6.8-4_arm64.deb  ...
正在解包 libtk8.6:arm64 (8.6.8-4) ...
正在选中未选择的软件包 tk8.6-blt2.5。
正准备解包 .../3-tk8.6-blt2.5_2.5.3+dfsg-4_arm64.deb  ...
正在解包 tk8.6-blt2.5 (2.5.3+dfsg-4) ...
正在选中未选择的软件包 blt。
正准备解包 .../4-blt_2.5.3+dfsg-4_arm64.deb  ...
正在解包 blt (2.5.3+dfsg-4) ...
正在选中未选择的软件包 python3-tk:arm64。
正准备解包 .../5-python3-tk_3.6.5-3_arm64.deb  ...
正在解包 python3-tk:arm64 (3.6.5-3) ...
正在设置 libxss1:arm64 (1:1.2.2-1) ...
正在设置 libtcl8.6:arm64 (8.6.8+dfsg-3) ...
正在设置 libtk8.6:arm64 (8.6.8-4) ...
正在设置 tk8.6-blt2.5 (2.5.3+dfsg-4) ...
正在设置 blt (2.5.3+dfsg-4) ...
正在设置 python3-tk:arm64 (3.6.5-3) ...
正在处理用于 libc-bin (2.27-3ubuntu1.5) 的触发器 ...

Wait until the installation is complete.

2. Check whether the installation is successful: python3 -m tkinter. If successful, the interface will pop up:

3. Create a new test routine using vim:

4. Run the program: python3 tk_test.py

[Summary] The Python desktop development environment has been found, and the next step is to process serial port data.

This post is from Domestic Chip Exchange

Latest reply

Is this window running directly on the board? What operating system does the board come with?   Details Published on 2022-7-27 18:50
 
 

6818

Posts

11

Resources
2
 

It can also be run in the xfce4 environment:

This post is from Domestic Chip Exchange
 
 
 

7422

Posts

2

Resources
3
 

Is this window running directly on the board? What operating system does the board come with?

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list