xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 5.88KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發布日期: 2021-03-01
  • 語言: Python
  • 標簽: PLC??連接??

資源簡介

需要安裝snap7,命令: pip install python-snap7

資源截圖

代碼片段和文件信息

#!/bin/python
#encoding=utf8
from?tkinter?import?*
import?snap7
from?functools?import?reduce


class?WidgetsDemo:

????def?__init__(self):
????????window?=?Tk()
????????window.title(“用戶界面“)

????#添加一個多選按鈕和單選按鈕到frame1
????????‘‘‘
????????frame1?=?frame(window)
????????frame1.pack()??#看下面的解釋(包管理器)

????????self.v2?=?IntVar()
????????rbRed?=?Radiobutton(frame1?text?=?“紅色“?bg?=?“red“?variable?=?self.v2?value?=?1?command?=?self.processRaidobutton)
????????rbYellow?=?Radiobutton(frame1?text=“黃色“?bg=“yellow“?variable=self.v2?value=2?command=self.processRaidobutton)
?????????#將cbtBold排列在frame1的網格第一行第一列(網格管理器也會在下面有解釋)
????????rbRed.grid(row=1?column=2)
????????rbYellow.grid(row=1?column=3)
????????‘‘‘
????#添加一個label、entry、button和message到frame2
????????frame2?=?frame(window)
????????frame2.pack()
????????label?=?Label(frame2?text?=?“請輸入IP“)
????????#label2?=?Label(frame2?text=“端口“)
????????label3?=?Label(frame2?text=“機架號“)
????????label4=?Label(frame

評論

共有 條評論