def init_ui(self): w = self.engine.get_init_ui(self) r = 0 c = 1 tk.Label(w, text="Actions:").grid(row=r, sticky=tk.W) self.cbActions = ttk.Combobox(w, ) self.cbActions.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Description:").grid(row=r, sticky=tk.W) self.txDescription = ttk.Entry( w, textvariable=self.description, ) self.txDescription.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Modified:").grid(row=r, column=0, sticky=tk.W) self.modified_date = Calendarium(self, "") self.modified_date.get_calendarium(w, r, c) r += 1 ttk.Label(w, text="Enable:").grid(row=r, sticky=tk.W) chk = ttk.Checkbutton(w, onvalue=1, offvalue=0, variable=self.enable) chk.grid(row=r, column=c, sticky=tk.W) if self.index is not None: self.engine.get_save_cancel_delete(self, w) else: self.engine.get_save_cancel(self, w)
def init_ui(self): w = self.nametowidget(".").engine.get_init_ui(self) self.export_date = Calendarium(self, "Export From") self.export_date.get_calendarium(w, 0, 0) self.nametowidget(".").engine.get_export_cancel(self, self)
def init_ui(self): w = self.nametowidget(".").engine.get_init_ui(self) r = 0 self.start_date = Calendarium(self, "Start Date") self.start_date.get_calendarium(w, r) self.nametowidget(".").engine.get_export_cancel(self, w)
def init_ui(self): w = self.nametowidget(".").engine.get_init_ui(self) r = 0 c = 0 self.analysis_date = Calendarium(self, "Set a date") self.analysis_date.get_calendarium(w, r, c) self.nametowidget(".").engine.get_export_cancel(self, self)
def init_ui(self): self.pack(fill=tk.BOTH, expand=1) f = ttk.Frame() self.start_date = Calendarium(self, "Start Date") self.end_date = Calendarium(self, "End Date") self.start_date.get_calendarium(f, ) self.end_date.get_calendarium(f, ) w = ttk.Frame() ttk.Button(w, text="Print Date", command=self.on_callback).pack() ttk.Button(w, text="Set Today", command=self.on_reset).pack() ttk.Button(w, text="Compare", command=self.on_compare).pack() ttk.Button(w, text="Close", command=self.on_close).pack() f.pack(side=tk.LEFT, fill=tk.BOTH, expand=1) w.pack(side=tk.RIGHT, fill=tk.BOTH, expand=1)
def init_ui(self): w = self.engine.get_init_ui(self) r = 0 c = 1 ttk.Label(w, text="Test:").grid(row=r, sticky=tk.W) lbl = ttk.Label(w, style='Data.TLabel', textvariable=self.test) lbl.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Batch:").grid(row=r, sticky=tk.W) lbl = ttk.Label(w, style='Data.TLabel', textvariable=self.batch) lbl.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Result:").grid(row=r, sticky=tk.W) self.txtResult = ttk.Entry(w, width=8, justify=tk.CENTER, validate='key', validatecommand=self.vcmd, textvariable=self.result) self.txtResult.grid(row=r, column=1, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Recived:").grid(row=r, sticky=tk.N + tk.W) self.recived_date = Calendarium(self, "") self.recived_date.get_calendarium(w, r, c) r += 1 lbl = ttk.Label(w, text="Time:").grid(row=r, sticky=tk.W) lbl = ttk.Label(w, style='Data.TLabel', textvariable=self.recived_time) lbl.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Enable:").grid(row=r, sticky=tk.W) chk = ttk.Checkbutton( w, onvalue=1, offvalue=0, variable=self.enable, ) chk.grid(row=r, column=c, sticky=tk.W) if self.index is not None: self.engine.get_save_cancel_delete(self, w) else: self.engine.get_save_cancel(self, w)
def init_ui(self): w = self.engine.get_init_ui(self) r = 0 c = 1 ttk.Label(w, text="Batch:").grid(row=r, sticky=tk.W) self.txtBatch = ttk.Entry(w, textvariable=self.batch) self.txtBatch.grid(row=r, column=c, padx=5, pady=5) r += 1 ttk.Label(w, text="Expiration:").grid(row=r, sticky=tk.N+tk.W) self.expiration_date = Calendarium(self, "") self.expiration_date.get_calendarium(w, r, c) r += 1 ttk.Label(w, text="Target:").grid(row=r, sticky=tk.W) self.txtTarget = ttk.Entry(w, width=8, justify=tk.CENTER, validate='key', validatecommand=self.vcmd, textvariable=self.target) self.txtTarget.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="SD:").grid(row=r, sticky=tk.W) self.txtSD = ttk.Entry(w, width=8, justify=tk.CENTER, validate='key', validatecommand=self.vcmd, textvariable=self.sd) self.txtSD.grid(row=r, column=c, sticky=tk.W, padx=5, pady=5) r += 1 ttk.Label(w, text="Enable:").grid(row=r, sticky=tk.W) chk = ttk.Checkbutton(w, onvalue=1, offvalue=0, variable=self.enable) chk.grid(row=r, column=c, sticky=tk.W) self.engine.get_save_cancel(self, w)