找回密码
 注册

QQ登录

只需一步,快速开始

搜索

Python串口助手 TK界面(含源代码)

[复制链接]
coolice 发表于 2020-4-25 17:14:10 | 显示全部楼层 |阅读模式
学习两个月的Python ,经过千辛万苦,熬夜写的软件,含有源码,源码和编译好的程序都在附件里
1.jpg
  1.         #*****************************************************
  2.         global but_open_clos_port
  3.         but_open_clos_port =Button(frame_set,text='打开串口' ,command=open_close_port)
  4.         but_open_clos_port.pack(fill='x')

  5.         #*****************************************************

  6.         lf_receve_set =LabelFrame(frame_set,text="接收设置")
  7.         lf_receve_set.pack(fill='x')

  8.         global radb_hex_ascii
  9.         radb_hex_ascii = IntVar()
  10.         radb_hex_ascii.set(1)
  11.         radb_ascii = Radiobutton(lf_receve_set,text='ASCII',variable=radb_hex_ascii,value=1)
  12.         radb_ascii.grid(row=0,column=0)
  13.         radb_hex = Radiobutton(lf_receve_set,text='HEX',variable=radb_hex_ascii,value=2)
  14.         radb_hex.grid(row=0,column=1)
  15.         radb_hex_ascii.get()

  16.         chekbuvalue_line = IntVar()
  17.         checkbu_line = Checkbutton(lf_receve_set,text='自动换行',variable=chekbuvalue_line)
  18.         checkbu_line.grid(row=1,column=0,padx=10)

  19.         # checkbuvalue_send_show=IntVar()
  20.         # checkbu_send_show = Checkbutton(lf_receve_set, text='显示发送',variable=checkbuvalue_send_show)
  21.         # checkbu_send_show.grid(row=2, column=0)

  22.         chekbuvalue_time_show = IntVar()
  23.         checkbu_time_show = Checkbutton(lf_receve_set, text='显示时间',variable=chekbuvalue_time_show)
  24.         checkbu_time_show.grid(row=3, column=0)

  25.         but_clear_txt=Button(lf_receve_set,text='清空接收',command=clear_all_txt)
  26.         but_clear_txt.grid(row=0,column=2,padx=20)

  27. ……………………

  28. …………限于本文篇幅 余下代码请下载附件…………
复制代码


python做的串口助手程序及源码.rar (8.13 MB, 售价: 2 E币)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|ELEOK |网站地图

GMT+8, 2024-4-26 08:50

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表