PEATDB/Ekin/Ekin_main.py
def compareAllDialog(self):
        """Choose which datasets to plot together"""
        self.display_multiple.set(0)
        self.display_all.set(0)
        if self.compare_multiple.get() == 0:
            self.redrawGraph()
            return
        if hasattr(self, 'compall_dialog') and self.compall_dialog != None:
            self.compall_dialog.deiconify()
            return

        #self.createSidePane(200)
        #self.compall_dialog = Frame(self.sidepane, width=300, height=500)
        #self.compall_dialog.pack(side=LEFT,fill=BOTH, expand=1, padx=4,pady=4)
        self.compall_dialog = Toplevel()
        self.compall_dialog.geometry('+800+200')
        self.compall_dialog.title('Compare all')

        self.datasetlist = LabelFrame(self.compall_dialog, text="Choose Datasets", padx=5, pady=5)
        self.datasetlist.grid(row=0, column=0, columnspan=2, sticky='news')
        r=0
        c=0
        i=0

        for name in self.E.datasets:
            if r>20:
                r=0
                c=c+2
            r=r+1
            Label(self.datasetlist,text=name).grid(row=r,column=c)
            self.displaytabs[name] = IntVar()
            self.displaytabs[name].set(0)
            cb=Checkbutton(self.datasetlist, onvalue=1,offvalue=0,variable=self.displaytabs[name])
            cb.grid(row=r,column=c+1,padx=2,pady=2)

        def close():
            if self.compall_dialog:
                self.compall_dialog.destroy()
                self.compall_dialog = None
                #self.resetSidePane()
            return

        b = Button(self.compall_dialog, text="Apply", command=self.redrawGraph)
        b.grid(row=1,column=1,sticky='news',padx=4,pady=4)
        c=Button(self.compall_dialog,text='Close', command=close)
        c.grid(row=1,column=0,sticky='news',padx=4,pady=4)
        return
Choose which datasets to plot together
Choose which datasets to plot together
Choose which datasets to plot together
def compareAllDialog(self):
        self.display_multiple.set(0)
        self.display_all.set(0)
        if self.compare_multiple.get() == 0:
            self.redrawGraph()
            return
        if hasattr(self, 'compall_dialog') and self.compall_dialog != None:
            self.compall_dialog.deiconify()
            return
        self.compall_dialog = Toplevel()
        self.compall_dialog.geometry('+800+200')
        self.compall_dialog.title('Compare all')
        self.datasetlist = LabelFrame(self.compall_dialog, text="Choose Datasets", padx=5, pady=5)
        self.datasetlist.grid(row=0, column=0, columnspan=2, sticky='news')
        r=0
        c=0
        i=0
        for name in self.E.datasets:
            if r>20:
                r=0
                c=c+2
            r=r+1
            Label(self.datasetlist,text=name).grid(row=r,column=c)
            self.displaytabs[name] = IntVar()
            self.displaytabs[name].set(0)
            cb=Checkbutton(self.datasetlist, onvalue=1,offvalue=0,variable=self.displaytabs[name])
            cb.grid(row=r,column=c+1,padx=2,pady=2)
        def close():
            if self.compall_dialog:
                self.compall_dialog.destroy()
                self.compall_dialog = None
            return
        b = Button(self.compall_dialog, text="Apply", command=self.redrawGraph)
        b.grid(row=1,column=1,sticky='news',padx=4,pady=4)
        c=Button(self.compall_dialog,text='Close', command=close)
        c.grid(row=1,column=0,sticky='news',padx=4,pady=4)
        return
def compareAllDialog ( self ) : self . display_multiple . set ( 0 ) self . display_all . set ( 0 ) if self . compare_multiple . get ( ) == 0 : self . redrawGraph ( ) return if hasattr ( self , 'compall_dialog' ) and self . compall_dialog != None : self . compall_dialog . deiconify ( ) return self . compall_dialog = Toplevel ( ) self . compall_dialog . geometry ( '+800+200' ) self . compall_dialog . title ( 'Compare all' ) self . datasetlist = LabelFrame ( self . compall_dialog , text = "Choose Datasets" , padx = 5 , pady = 5 ) self . datasetlist . grid ( row = 0 , column = 0 , columnspan = 2 , sticky = 'news' ) r = 0 c = 0 i = 0 for name in self . E . datasets : if r > 20 : r = 0 c = c + 2 r = r + 1 Label ( self . datasetlist , text = name ) . grid ( row = r , column = c ) self . displaytabs [ name ] = IntVar ( ) self . displaytabs [ name ] . set ( 0 ) cb = Checkbutton ( self . datasetlist , onvalue = 1 , offvalue = 0 , variable = self . displaytabs [ name ] ) cb . grid ( row = r , column = c + 1 , padx = 2 , pady = 2 ) def close ( ) : if self . compall_dialog : self . compall_dialog . destroy ( ) self . compall_dialog = None return b = Button ( self . compall_dialog , text = "Apply" , command = self . redrawGraph ) b . grid ( row = 1 , column = 1 , sticky = 'news' , padx = 4 , pady = 4 ) c = Button ( self . compall_dialog , text = 'Close' , command = close ) c . grid ( row = 1 , column = 0 , sticky = 'news' , padx = 4 , pady = 4 ) return
Choose which datasets to plot together
Choose which datasets to plot together
"""Choose which datasets to plot together""" #self.createSidePane(200) #self.compall_dialog = Frame(self.sidepane, width=300, height=500) #self.compall_dialog.pack(side=LEFT,fill=BOTH, expand=1, padx=4,pady=4) #self.resetSidePane()
self