July 2021
27
Tk.__init__(self,parent) # instantiates the main window
self.parent = parent # save off the parent main window reference
BPPReader_GUI.inst = self # save ourselves as a singleton
self.geometry("1200x500")
self.call('wm', 'iconphoto', self._w, PhotoImage(file='icon.gif'))
self.labelStyle = ttk.Style()
self.labelStyle.configure("VAL.TLabel", padding=2, anchor='w', relief='sunken', width=10)
self.statusFrame = ttk.Frame(self,height=160,relief="raised")
self.statusFrame.pack(fill='both',expand=False, pady=1)
self.statusFrame.grid_rowconfigure(0, minsize=16);
self.statusFrame.grid_rowconfigure(1, minsize=30);
self.statusFrame.grid_rowconfigure(2, minsize=30);
self.statusFrame.grid_rowconfigure(3, minsize=30);
self.statusFrame.grid_rowconfigure(4, minsize=30);
self.statusFrame.grid_columnconfigure(0, minsize=80);
self.statusFrame.grid_columnconfigure(1, minsize=100);
self.statusFrame.grid_columnconfigure(2, minsize=80); # temp
self.statusFrame.grid_columnconfigure(3, minsize=50);
self.statusFrame.grid_columnconfigure(4, minsize=80); # CO2
self.statusFrame.grid_columnconfigure(5, minsize=50);
self.statusFrame.grid_columnconfigure(6, minsize=80); # RH
self.statusFrame.grid_columnconfigure(7, minsize=50);
self.statusFrame.grid_columnconfigure(8, minsize=80); # O2
self.statusFrame.grid_columnconfigure(9, minsize=50);
self.statusFrame.grid_columnconfigure(10, minsize=50);
self.statusFrame.grid_columnconfigure(11, minsize=50);
self.statusFrame.grid_columnconfigure(12, minsize=100);
self.statusFrame.grid_columnconfigure(13, minsize=50);
l = ttk.Label(self.statusFrame,text="Powered:",anchor='e')
l.grid(row=1,column=0,sticky='e',padx=2)
self.powered = StringVar()
l = ttk.Label(self.statusFrame, textvariable=self.powered, style="VAL.TLabel")
l.grid(row=1,column=1,sticky='w')
l = ttk.Label(self.statusFrame,text="Mode:",anchor='e')
l.grid(row=2,column=0,sticky='e',padx=2)
self.mode = StringVar()
l = ttk.Label(self.statusFrame, textvariable=self.mode, style="VAL.TLabel")
l.grid(row=2,column=1,sticky='w')
l = ttk.Label(self.statusFrame,text="Door:",anchor='e')
l.grid(row=3,column=0,sticky='e',padx=2)
self.doorStatus = StringVar()
l = ttk.Label(self.statusFrame, textvariable=self.doorStatus, style="VAL.TLabel")
l.grid(row=3,column=1,sticky='w')
l = ttk.Label(self.statusFrame,text="UV:",anchor='e')
l.grid(row=4,column=0,sticky='e',padx=2)
self.UV = StringVar()
l = ttk.Label(self.statusFrame, textvariable=self.UV, style="VAL.TLabel")
l.grid(row=4,column=1,sticky='w')
l2 = ttk.LabelFrame(self.statusFrame,text="Temperature") # temp
l2.grid(row=1,column=2,sticky='e',padx=2, rowspan=3)
l2.grid_rowconfigure(0, minsize=24);
l2.grid_rowconfigure(1, minsize=24);
l2.grid_rowconfigure(2, minsize=24);
Содержание ReCO2ver
Страница 8: ...July 2021 8 Figure 2 Data Packet Figure 3 Event Packet...
Страница 32: ...July 2021 32 Glossary...