def SetNumPlotsWidgets(self, rowControl):
## ?????????? ???????? (1, 4, 9)
def SetNumPlots():
self.shSpectr.NumPlots = NumPlots.get()
self.scIndex.configure(to=self.toIndex(), value=int(self.shSpectr.iSpectr/self.shSpectr.NumPlots))
self.SetIndexLabel()
self.shSpectr.SetPlots()
self.shSpectr.ShowSp()
self.SetIndexLabel()
self.AddLabel(rowControl, "Num of plots ", colsp=1)
NumPlots = tk.IntVar(self.frControl)
NumPlots.set(self.shSpectr.NumPlots)
self.NumPlots1 = ttk.Radiobutton(self.frControl, text="1", variable=NumPlots, value=1, command=SetNumPlots)
self.NumPlots2 = ttk.Radiobutton(self.frControl, text="4", variable=NumPlots, value=4, command=SetNumPlots)
self.NumPlots4 = ttk.Radiobutton(self.frControl, text="9", variable=NumPlots, value=9, command=SetNumPlots)
PlaceWidget(self.NumPlots1, rowControl, col=1, stick='w')
PlaceWidget(self.NumPlots2, rowControl, col=1, stick='n')
rowControl = PlaceWidget(self.NumPlots4, rowControl, col=1, stick='e')
return self.AddLabel(rowControl)
#return rowControl
评论列表
文章目录