学习两个月的Python ,经过千辛万苦,熬夜写的软件,含有源码,源码和编译好的程序都在附件里
- #*****************************************************
- global but_open_clos_port
- but_open_clos_port =Button(frame_set,text='打开串口' ,command=open_close_port)
- but_open_clos_port.pack(fill='x')
- #*****************************************************
- lf_receve_set =LabelFrame(frame_set,text="接收设置")
- lf_receve_set.pack(fill='x')
- global radb_hex_ascii
- radb_hex_ascii = IntVar()
- radb_hex_ascii.set(1)
- radb_ascii = Radiobutton(lf_receve_set,text='ASCII',variable=radb_hex_ascii,value=1)
- radb_ascii.grid(row=0,column=0)
- radb_hex = Radiobutton(lf_receve_set,text='HEX',variable=radb_hex_ascii,value=2)
- radb_hex.grid(row=0,column=1)
- radb_hex_ascii.get()
- chekbuvalue_line = IntVar()
- checkbu_line = Checkbutton(lf_receve_set,text='自动换行',variable=chekbuvalue_line)
- checkbu_line.grid(row=1,column=0,padx=10)
- # checkbuvalue_send_show=IntVar()
- # checkbu_send_show = Checkbutton(lf_receve_set, text='显示发送',variable=checkbuvalue_send_show)
- # checkbu_send_show.grid(row=2, column=0)
- chekbuvalue_time_show = IntVar()
- checkbu_time_show = Checkbutton(lf_receve_set, text='显示时间',variable=chekbuvalue_time_show)
- checkbu_time_show.grid(row=3, column=0)
- but_clear_txt=Button(lf_receve_set,text='清空接收',command=clear_all_txt)
- but_clear_txt.grid(row=0,column=2,padx=20)
- ……………………
- …………限于本文篇幅 余下代码请下载附件…………
复制代码
python做的串口助手程序及源码.rar
(8.13 MB, 售价: 2 工控币)
|
|