Spectroscope.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:Spectroscope 作者: magin67 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号