Beispiel #1
0
 def open_trace(self, filename):
     """Opens and reads a trace file"""
     print_debug("Opening trace file: %s" % filename)
     self.close_trace()
     self.trace_data = trace_files.open_trace(filename)
     if self.trace_data is None:
         print_debug("Error, couldn't open trace file: %s" % filename)
     self.update_ui()
     self.update_column_widths(self.trace_table)
Beispiel #2
0
 def open_trace(self, filename):
     """Opens and reads a trace file"""
     print_debug(f"Opening trace file: {filename}")
     self.close_trace()
     self.trace_data = trace_files.open_trace(filename)
     if self.trace_data is None:
         print_debug(f"Error, couldn't open trace file: {filename}")
     else:
         if prefs.PAGINATION_ENABLED:
             self.trace_pagination.set_current_page(1, True)
         self.trace_table.set_data(self.trace_data.trace)
         self.trace_table.update()
     self.update_bookmark_table()
     self.trace_table.update_column_widths()
    def open_trace(self, filename):
        """Opens and reads a trace file"""
        print_debug(f"Opening trace file: {filename}")
        self.close_trace()
        self.trace_data = trace_files.open_trace(filename)
        if self.trace_data is None:
            print_debug(f"Error, couldn't open trace file: {filename}")
        else:
            if prefs.PAGINATION_ENABLED:
                self.trace_pagination.set_current_page(1, True)
            self.trace_table.get_syntax_highlighter().reset()
            self.trace_table.set_data(self.trace_data.trace)
            self.trace_table.populate()
            self.trace_table.selectRow(0)
            self.setWindowTitle(
                f"{filename.split('/')[-1]} - {prefs.PACKAGE_NAME}")

        self.update_bookmark_table()
        self.trace_table.update_column_widths()