From c37d15e3c9ab40cbd40c4725679d50d2b7fb4690 Mon Sep 17 00:00:00 2001 From: George Yohng Date: Sun, 21 Apr 2024 21:28:28 +0800 Subject: [PATCH] Convert the rotations field data to string for the GUI framework to recognise it. --- mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index f6a56a1..9cfa916 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -616,13 +616,13 @@ def populate_footprint_list(self, *_): # First check if the part name mathes for regex, correction in corrections: if re.search(regex, str(part[1])): - part[8] = correction + part[8] = str(correction) break # If there was no match for the part name, check if the package matches if part[8] == "": for regex, correction in corrections: if re.search(regex, str(part[2])): - part[8] = correction + part[8] = str(correction) break self.footprint_list.AppendItem(part)