pKaTool/pKacalc_interface.py
def print_included(self):
        """Print the files that we are considering"""
        #
        # Do we have any files?
        #
        if len(self.files_included)<1:
            return
        Label(self.file_win,text='Files holding structure data').grid(row=0,column=0,columnspan=3)
        #
        # Print the file(s) that we use
        #
        import os
        row=1
        count=1
        for name,description in self.files_included:
            Label(self.file_win,text='%d' %count,bg='white').grid(row=row,column=0,sticky='news')
            Label(self.file_win,text='%s' %os.path.split(name)[1],bg='white').grid(row=row,column=1,sticky='news')
            Label(self.file_win,text='%s' %description,bg='white').grid(row=row,column=2,sticky='news')
            count=count+1
            row=row+1
        Button(self.file_win,text='Add another file',command=self.add_file).grid(row=row,column=0,columnspan=1,sticky='nws')
        Button(self.file_win,text='Done',command=self.really_getgroups).grid(row=row,column=2,columnspan=1,sticky='nes')
        self.update()
        return
Print the files that we are considering
Print the files that we are considering
Print the files that we are considering
def print_included(self):
         Do we have any files?
        if len(self.files_included)<1:
            return
        Label(self.file_win,text='Files holding structure data').grid(row=0,column=0,columnspan=3)
         Print the file(s) that we use
        import os
        row=1
        count=1
        for name,description in self.files_included:
            Label(self.file_win,text='%d' %count,bg='white').grid(row=row,column=0,sticky='news')
            Label(self.file_win,text='%s' %os.path.split(name)[1],bg='white').grid(row=row,column=1,sticky='news')
            Label(self.file_win,text='%s' %description,bg='white').grid(row=row,column=2,sticky='news')
            count=count+1
            row=row+1
        Button(self.file_win,text='Add another file',command=self.add_file).grid(row=row,column=0,columnspan=1,sticky='nws')
        Button(self.file_win,text='Done',command=self.really_getgroups).grid(row=row,column=2,columnspan=1,sticky='nes')
        self.update()
        return
def print_included ( self ) : if len ( self . files_included ) < 1 : return Label ( self . file_win , text = 'Files holding structure data' ) . grid ( row = 0 , column = 0 , columnspan = 3 ) import os row = 1 count = 1 for name , description in self . files_included : Label ( self . file_win , text = '%d' % count , bg = 'white' ) . grid ( row = row , column = 0 , sticky = 'news' ) Label ( self . file_win , text = '%s' % os . path . split ( name ) [ 1 ] , bg = 'white' ) . grid ( row = row , column = 1 , sticky = 'news' ) Label ( self . file_win , text = '%s' % description , bg = 'white' ) . grid ( row = row , column = 2 , sticky = 'news' ) count = count + 1 row = row + 1 Button ( self . file_win , text = 'Add another file' , command = self . add_file ) . grid ( row = row , column = 0 , columnspan = 1 , sticky = 'nws' ) Button ( self . file_win , text = 'Done' , command = self . really_getgroups ) . grid ( row = row , column = 2 , columnspan = 1 , sticky = 'nes' ) self . update ( ) return
Print the files that we are considering
Print the files that we are considering
"""Print the files that we are considering""" # # Do we have any files? # # # Print the file(s) that we use #
self