我想将Scale小部件的值初始化为2. 我怎样才能做到这一点?因为我使用了网格,.set所以无法正常工作。
这是我的代码:
Scale(self, command=self.onMove, movesvariable=self.var, from_=1, to=10,orient=HORIZONTAL,length=500,tickinterval=0.5, resolution=0.1, cursor = 'hand2 ').grid(columnspan ='200',rowspan = '4',sticky= W)