예제 #1
0
	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')
예제 #2
0
 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')
예제 #3
0
	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')
예제 #4
0
 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')