def createWidgets(self):
#Configuration
ttk.Label(root, text='Server IP').grid(row=0, column=0, sticky='news')
ttk.Label(root, text='Interval (ms)').grid(row=0,column=1, sticky='news')
ttk.Entry(root, textvariable=self.serverIP).grid(row=1,column=0,sticky='news')
ttk.Entry(root, textvariable=self.interval).grid(row=1,column=1,sticky='news')
#Buttons
tk.Button(root, textvariable=self.connectedMessage, justify='center', command=self.connectToServer).\
grid(row=2,column=0,columnspan=2,sticky='news')
tk.Button(root, text='Open', justify='center', command=self.telematics.openFile).\
grid(row=3,column=0,sticky='news')
tk.Button(root, text='Save', justify='center', command=self.telematics.saveFile).\
grid(row=3,column=1,sticky='news')
#Variables
r = 4
for name, var in self.values.items():
ttk.Label(root, text=name, width=20).grid(row=r,column=0)
ttk.Label(root, textvariable=self.values[name], width=20).grid(row=r,column=1)
r = r + 1
telemetry_app.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录