def build_widgets(self, master, row): Parameter.build_widgets(self, master, row) self.var = StringVar(master) self.var.set(self.value) entry = MyEntry(master, textvariable=self.var, width=0, command=self.var_changed) entry.grid(row=row, column=1, columnspan=3, sticky='ew')
def build_widgets(self, master, row, build_entry=1): self.init_var() Parameter.build_widgets(self, master, row) if build_entry: entry = MyEntry(master, textvariable=self.var, justify=RIGHT, width=6, command=self.var_changed) entry.grid(row=row, column=1, sticky='ew') min, max = self.range scroll = MiniScroller(master, variable=self.var, min=min, max=max, step=1) scroll.grid(row=row, column=2, sticky='news')