PEATDB/Ekin/Ekin_main.py
def createDatasetMenu(self):
        """Do menu for selecting the dataset and dataset operations"""

        row=0
        self.dataset_menu=Frame(self.ekin_win,
                             height=30,
                             width=300,
                             borderwidth=2)
        #self.dataset_menu.grid(row=row,column=0, columnspan=2, rowspan=1, sticky='w')
        self.dataset_menu.pack(fill=X )
        self.dataset_select_button=None


        prev = Ekin_images.prev()
        self.prevbutton = Button(self.dataset_menu,text='Previous',
                                 image=prev,
                                 #compound='left',
                                 #width=11,
                                 borderwidth=2, relief=GROOVE,
                                 command=self.prev_dataset)
        self.prevbutton.grid(row=0,column=1,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)
        self.prevbutton.image = prev
        self.prevballoon=Pmw.Balloon(self.ekin_win)
        self.prevballoon.bind(self.prevbutton, 'Previous dataset')

        next = Ekin_images.next()
        self.nextbutton = Button(self.dataset_menu,text='Next',
                                image=next,
                                borderwidth=2, relief=GROOVE,
                                command=self.next_dataset)
        self.nextbutton.image = next
        self.nextballoon=Pmw.Balloon(self.ekin_win)
        self.nextballoon.bind(self.nextbutton, 'Next dataset')
        self.nextbutton.grid(row=0,column=2,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)

        add = Ekin_images.add()
        self.addDB = Button(self.dataset_menu,text='Add dataset',
                            image=add,
                            #width=11,
                            borderwidth=2, relief=GROOVE,
                            command=self.addDataset)
        self.addDB.image = add
        self.addballoon=Pmw.Balloon(self.ekin_win)
        self.addballoon.bind(self.addDB, 'Add dataset')
        self.addDB.grid(row=row,column=3,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)

        delb = Ekin_images.delb()
        self.deleteDB = Button(self.dataset_menu,text='Delete dataset',
                            image=delb,
                            #width=11,
                            borderwidth=2, relief=GROOVE,
                            command=self.deleteDataset)
        self.deleteDB.image = delb
        self.delballoon=Pmw.Balloon(self.ekin_win)
        self.delballoon.bind(self.deleteDB, 'Delete dataset')
        self.deleteDB.grid(row=row,column=4,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)

        self.sortbyDB = Menubutton(self.dataset_menu,
                                        text='Sort by',
                                        width=12,
                                        borderwidth=2, relief=GROOVE)

        self.sortby_menu = Menu(self.sortbyDB, tearoff=0)
        self.sortbyDB['menu']=self.sortby_menu
        self.sortby_var = StringVar()
        self.sortby_var.set('name')
        self.sortby_menu.add_radiobutton(label='Name',
                           variable=self.sortby_var,
                           value='name',
                           indicatoron=1,
                           command=self.update_sortby)
        self.sortby_menu.add_radiobutton(label='First number',
                           variable=self.sortby_var,
                           value='firstnum',
                           indicatoron=1,
                           command=self.update_sortby)
        self.sortbyballoon=Pmw.Balloon(self.ekin_win)
        self.sortbyballoon.bind(self.sortbyDB, 'Sort datasets by name or 1st num')
        self.sortbyDB.grid(row=row,column=5,sticky='nws',padx=1)
        self.updateDatasetSelector()
        return
Do menu for selecting the dataset and dataset operations
Do menu for selecting the dataset and dataset operations
Do menu for selecting the dataset and dataset operations
def createDatasetMenu(self):
        row=0
        self.dataset_menu=Frame(self.ekin_win,
                             height=30,
                             width=300,
                             borderwidth=2)
        self.dataset_menu.pack(fill=X )
        self.dataset_select_button=None
        prev = Ekin_images.prev()
        self.prevbutton = Button(self.dataset_menu,text='Previous',
                                 image=prev,
                                 borderwidth=2, relief=GROOVE,
                                 command=self.prev_dataset)
        self.prevbutton.grid(row=0,column=1,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)
        self.prevbutton.image = prev
        self.prevballoon=Pmw.Balloon(self.ekin_win)
        self.prevballoon.bind(self.prevbutton, 'Previous dataset')
        next = Ekin_images.next()
        self.nextbutton = Button(self.dataset_menu,text='Next',
                                image=next,
                                borderwidth=2, relief=GROOVE,
                                command=self.next_dataset)
        self.nextbutton.image = next
        self.nextballoon=Pmw.Balloon(self.ekin_win)
        self.nextballoon.bind(self.nextbutton, 'Next dataset')
        self.nextbutton.grid(row=0,column=2,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)
        add = Ekin_images.add()
        self.addDB = Button(self.dataset_menu,text='Add dataset',
                            image=add,
                            borderwidth=2, relief=GROOVE,
                            command=self.addDataset)
        self.addDB.image = add
        self.addballoon=Pmw.Balloon(self.ekin_win)
        self.addballoon.bind(self.addDB, 'Add dataset')
        self.addDB.grid(row=row,column=3,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)
        delb = Ekin_images.delb()
        self.deleteDB = Button(self.dataset_menu,text='Delete dataset',
                            image=delb,
                            borderwidth=2, relief=GROOVE,
                            command=self.deleteDataset)
        self.deleteDB.image = delb
        self.delballoon=Pmw.Balloon(self.ekin_win)
        self.delballoon.bind(self.deleteDB, 'Delete dataset')
        self.deleteDB.grid(row=row,column=4,sticky='nws',ipadx=2, ipady=2, padx=1,pady=1)
        self.sortbyDB = Menubutton(self.dataset_menu,
                                        text='Sort by',
                                        width=12,
                                        borderwidth=2, relief=GROOVE)
        self.sortby_menu = Menu(self.sortbyDB, tearoff=0)
        self.sortbyDB['menu']=self.sortby_menu
        self.sortby_var = StringVar()
        self.sortby_var.set('name')
        self.sortby_menu.add_radiobutton(label='Name',
                           variable=self.sortby_var,
                           value='name',
                           indicatoron=1,
                           command=self.update_sortby)
        self.sortby_menu.add_radiobutton(label='First number',
                           variable=self.sortby_var,
                           value='firstnum',
                           indicatoron=1,
                           command=self.update_sortby)
        self.sortbyballoon=Pmw.Balloon(self.ekin_win)
        self.sortbyballoon.bind(self.sortbyDB, 'Sort datasets by name or 1st num')
        self.sortbyDB.grid(row=row,column=5,sticky='nws',padx=1)
        self.updateDatasetSelector()
        return
def createDatasetMenu ( self ) : row = 0 self . dataset_menu = Frame ( self . ekin_win , height = 30 , width = 300 , borderwidth = 2 ) self . dataset_menu . pack ( fill = X ) self . dataset_select_button = None prev = Ekin_images . prev ( ) self . prevbutton = Button ( self . dataset_menu , text = 'Previous' , image = prev , borderwidth = 2 , relief = GROOVE , command = self . prev_dataset ) self . prevbutton . grid ( row = 0 , column = 1 , sticky = 'nws' , ipadx = 2 , ipady = 2 , padx = 1 , pady = 1 ) self . prevbutton . image = prev self . prevballoon = Pmw . Balloon ( self . ekin_win ) self . prevballoon . bind ( self . prevbutton , 'Previous dataset' ) next = Ekin_images . next ( ) self . nextbutton = Button ( self . dataset_menu , text = 'Next' , image = next , borderwidth = 2 , relief = GROOVE , command = self . next_dataset ) self . nextbutton . image = next self . nextballoon = Pmw . Balloon ( self . ekin_win ) self . nextballoon . bind ( self . nextbutton , 'Next dataset' ) self . nextbutton . grid ( row = 0 , column = 2 , sticky = 'nws' , ipadx = 2 , ipady = 2 , padx = 1 , pady = 1 ) add = Ekin_images . add ( ) self . addDB = Button ( self . dataset_menu , text = 'Add dataset' , image = add , borderwidth = 2 , relief = GROOVE , command = self . addDataset ) self . addDB . image = add self . addballoon = Pmw . Balloon ( self . ekin_win ) self . addballoon . bind ( self . addDB , 'Add dataset' ) self . addDB . grid ( row = row , column = 3 , sticky = 'nws' , ipadx = 2 , ipady = 2 , padx = 1 , pady = 1 ) delb = Ekin_images . delb ( ) self . deleteDB = Button ( self . dataset_menu , text = 'Delete dataset' , image = delb , borderwidth = 2 , relief = GROOVE , command = self . deleteDataset ) self . deleteDB . image = delb self . delballoon = Pmw . Balloon ( self . ekin_win ) self . delballoon . bind ( self . deleteDB , 'Delete dataset' ) self . deleteDB . grid ( row = row , column = 4 , sticky = 'nws' , ipadx = 2 , ipady = 2 , padx = 1 , pady = 1 ) self . sortbyDB = Menubutton ( self . dataset_menu , text = 'Sort by' , width = 12 , borderwidth = 2 , relief = GROOVE ) self . sortby_menu = Menu ( self . sortbyDB , tearoff = 0 ) self . sortbyDB [ 'menu' ] = self . sortby_menu self . sortby_var = StringVar ( ) self . sortby_var . set ( 'name' ) self . sortby_menu . add_radiobutton ( label = 'Name' , variable = self . sortby_var , value = 'name' , indicatoron = 1 , command = self . update_sortby ) self . sortby_menu . add_radiobutton ( label = 'First number' , variable = self . sortby_var , value = 'firstnum' , indicatoron = 1 , command = self . update_sortby ) self . sortbyballoon = Pmw . Balloon ( self . ekin_win ) self . sortbyballoon . bind ( self . sortbyDB , 'Sort datasets by name or 1st num' ) self . sortbyDB . grid ( row = row , column = 5 , sticky = 'nws' , padx = 1 ) self . updateDatasetSelector ( ) return
Do menu for selecting the dataset and dataset operations
Do menu for selecting the dataset and dataset operations
"""Do menu for selecting the dataset and dataset operations""" #self.dataset_menu.grid(row=row,column=0, columnspan=2, rowspan=1, sticky='w') #compound='left', #width=11, #width=11, #width=11,
self