Пример #1
0
    def AskOpenFile(self):
        """
            Opens and parses the robot result file (.tar or .tar.gz)
        """
        tar_fname = tkFileDialog.askopenfilename(
            filetypes=[('gzip files', '.gz'), ('tar files',
                                               '.tar'), ('all files', '.*')])
        if tar_fname:
            logging.debug("Collecting data from: %s" % (tar_fname))
            self.MES = CollectData(tar_fname)
            if self.MES:
                self.button_savepdf.configure(state=Tkconstants.ACTIVE)
                self.button_savecsv.configure(state=Tkconstants.ACTIVE)

                # populate the plate ID list
                self.list_plate_ids.delete(0, Tkconstants.END)
                for item in sorted(self.MES.keys()):
                    self.list_plate_ids.insert(Tkconstants.END, item)