def SetPlotWidgets(self, rowControl):
## ??? ???????
def SetPlotType(val):
self.shSpectr.PlotType = val
self.shSpectr.ShowSp()
def ChkShowTitle():
self.shSpectr.ShowTitle = showTitle.get()
self.shSpectr.ShowSp()
rowControl = self.AddLabel(rowControl, "Plot type", colsp=1)
vPlotTypes = SD.ShowSpectr.PlotTypes() #self.shSpectr
sPlotType = tk.StringVar(self.frControl)
self.omPlotType = ttk.OptionMenu(self.frControl, sPlotType, self.shSpectr.PlotType, *vPlotTypes, command=SetPlotType)
PlaceWidget(self.omPlotType, rowControl, col=1, stick='wn')
showTitle = tk.BooleanVar()
showTitle.set(self.shSpectr.ShowTitle)
self.chkshowTitle = ttk.Checkbutton(self.frControl, variable=showTitle, text="Titles", onvalue=True, offvalue=False, command=ChkShowTitle)
rowControl = PlaceWidget(self.chkshowTitle, rowControl, col=1, stick='e')
return rowControl
#return self.AddLabel(rowControl)
评论列表
文章目录