diff --git a/bin/lib/csv_parsers.py b/bin/lib/csv_parsers.py index 1693d08..b210e31 100644 --- a/bin/lib/csv_parsers.py +++ b/bin/lib/csv_parsers.py @@ -55,11 +55,3 @@ class CsvWrite: with open(path, "a") as appenddata: self.__appending = csv.writer(appenddata, delimiter=',', quoting=csv.QUOTE_MINIMAL) self.__appending.writerow(value) - - def initialize(self): - with open("../../data/ingredients/ingredients.csv", "w") as initializedata: - self.__creating = csv.writer(initializedata, delimiter=',', quoting=csv.QUOTE_MINIMAL) - self.__creating.writerow(["Setup-Success"]) - with open("../../data/recipes/recipes.csv", "w") as initializedata: - self.__creating = csv.writer(initializedata, delimiter=',', quoting=csv.QUOTE_MINIMAL) - self.__creating.writerow(["Setup-Success"]) diff --git a/bin/modules/configurator.py b/bin/modules/configurator.py index 5d9814f..cc098d7 100644 --- a/bin/modules/configurator.py +++ b/bin/modules/configurator.py @@ -1,8 +1,16 @@ """@package docstring This module configures PCs but relies heavily on external modules that are included with the package. """ +import bin.lib.csv_parsers + + +cvr = bin.lib.csv_parsers.CsvRead() +cvw = bin.lib.csv_parsers.CsvWrite() class ConfigCreator: def __init__(self): - print("") + self.__info_import = [] + + def start_config(self, path): + self.__info_import = cvr.importing(path) diff --git a/data/product_info/coolers.csv b/data/product_info/coolers.csv index 307fb07..6368442 100644 --- a/data/product_info/coolers.csv +++ b/data/product_info/coolers.csv @@ -1,3 +1,3 @@ -simplePCBuilding-Cooler-Listing -ID,MANUFACTURER,COOLERTYPE,NAME,Mounting_Kit,MAXTDP,Height,WidthX,WidthY,FAN_SIZE,FAN_COUNT, -1,Noctua,Air-Tower,NH-U12S Redux,,120,,,,120,1, \ No newline at end of file +simplePCBuilding-Cooler-data-library +ID,MANUFACTURER,COOLERTYPE,NAME,Mounting_Kit,MAXTDP,Height,WidthX,WidthY,FAN_NAME,FULL_NAME +1,Noctua,Air-Tower,NH-U12S Redux,Secufirm,120,,,,Noctua NH-U12S Redux \ No newline at end of file diff --git a/data/product_info/cpu.csv b/data/product_info/cpu.csv index ff1ee9d..1aa9eb9 100644 --- a/data/product_info/cpu.csv +++ b/data/product_info/cpu.csv @@ -1,3 +1,19 @@ simplePCBuilding-CPU-data-Library -ID,DIGITEC-LINK,MANUFACTURER,SOCKET,ARCHITECTURE,SERIES,EARLIEST_COMPATIBLE_CHIPSET,TDP,FULL_NAME -1,,AMD,AM4,Zen3,Ryzen 5000,B450,65,AMD Ryzen 5 5600X \ No newline at end of file +ID,DIGITEC-LINK,MANUFACTURER,SOCKET,ARCHITECTURE,SERIES,EARLIEST_COMPATIBLE_CHIPSET,TDP/MTP,FULL_NAME,Boxed Cooler +1,https://www.digitec.ch/de/s1/product/amd-ryzen-5-5600x-am4-370-ghz-6-core-prozessor-13987919,AMD,AM4,Zen3,Ryzen 5000,B450,65,AMD Ryzen 5 5600X,AMD Wraith Stealth +2,https://www.digitec.ch/de/s1/product/amd-ryzen-7-5800x-am4-380-ghz-8-core-prozessor-13987918,AMD,AM4,Zen3,Ryzen 5000,X470,105,AMD Ryzen 7 5800X,None +3,https://www.digitec.ch/de/s1/product/amd-ryzen-9-5900x-am4-370-ghz-12-core-prozessor-13987917,AMD,AM4,Zen3,Ryzen 5000,X570,105,AMD Ryzen 9 5900X,None +4,https://www.digitec.ch/de/s1/product/amd-ryzen-9-5950x-am4-340-ghz-16-core-prozessor-13987916,AMD,Am4,Zen3,Ryzen 5000,X570,105,AMD Ryzen 9 5950X,None +5,https://www.digitec.ch/de/s1/product/intel-core-i3-12100f-lga-1700-330-ghz-4-core-prozessor-18332884,Intel,LGA1700,Alder Lake,12th Gen Core,H610,58,Intel Core i3-12100F +6,https://www.digitec.ch/de/s1/product/intel-core-i5-12400f-lga1700-cache-lga-1700-250-ghz-6-core-prozessor-18321458,Intel,LGA1700,Alder Lake,12th Gen Core,B660,117,Intel Core i5-12400F +7,https://www.digitec.ch/de/s1/product/intel-core-i5-12400-lga-1700-250-ghz-6-core-prozessor-17761782,Intel,LGA1700,Alder Lake,12th Gen Core,B660,117,Intel Core i5-12400 +8,https://www.digitec.ch/de/s1/product/intel-core-i5-12600-lga-1700-330-ghz-prozessor-17761685,Intel,LGA1700,Alder Lake,12th Gen Core,B660,117,Intel Core i5-12600 +9,https://www.digitec.ch/de/s1/product/intel-core-i5-12600kf-lga-1700-370-ghz-10-core-prozessor-16552820,Intel,LGA1700,Alder Lake,12th Gen Core,Z690,150,Intel Core i5-12600KF +10,https://www.digitec.ch/de/s1/product/intel-core-i5-12600k-lga-1700-370-ghz-10-core-prozessor-16552819,Intel,LGA1700,Alder Lake,12th Gen Core,Z690,150,Intel Core i5-12600K +11,https://www.digitec.ch/de/s1/product/intel-core-i7-12700f-lga-1700-210-ghz-prozessor-17761785,Intel,LGA1700,Alder Lake,12th Gen Core,B660,180,Intel Core i7-12700F +12,https://www.digitec.ch/de/s1/product/intel-core-i7-12700-lga-1700-210-ghz-12-core-prozessor-17761681,Intel,LGA1700,Alder Lake,12th Gen Core,B660,180,Intel Core i7-12700 +13,https://www.digitec.ch/de/s1/product/intel-core-i7-12700kf-lga-1700-360-ghz-12-core-prozessor-16552822,Intel,LGA1700,Alder Lake,12th Gen Core,Z690,190,Intel Core i7-12700KF +14,https://www.digitec.ch/de/s1/product/intel-core-i7-12700k-lga-1700-360-ghz-12-core-prozessor-16552821,Intel,LGA1700,Alder Lake,12th Gen Core,Z690,190,Intel Core i7-12700K +15,https://www.digitec.ch/de/s1/product/intel-cpucore-i9-12900kf-520ghz-lga16a-tray-lga-1700-16-core-prozessor-18555667,Intel,LGA1700,Alder Lake,12th Gen Core,Z690,241,Intel Core i9-12900KF +16,https://www.digitec.ch/de/s1/product/intel-core-i9-12900k-lga-1700-320-ghz-16-core-prozessor-16552823,Intel,LGA1700,Alder Lake,12th Gen Core,Z690,241,Intel Core i9-12900K +17,https://www.digitec.ch/de/s1/product/amd-ryzen-threadripper-3960x-trx4-380-ghz-24-core-prozessor-12325012,AMD,TR4,Threadripper,Threadripper 3000, \ No newline at end of file diff --git a/data/product_info/gpu.csv b/data/product_info/gpu.csv index e69de29..ca77b72 100644 --- a/data/product_info/gpu.csv +++ b/data/product_info/gpu.csv @@ -0,0 +1 @@ +simplePCBuilding-GPU-Data-Library \ No newline at end of file diff --git a/data/product_info/hdds.csv b/data/product_info/hdds.csv new file mode 100644 index 0000000..e69de29 diff --git a/data/product_info/psu.csv b/data/product_info/psu.csv index e69de29..144cccb 100644 --- a/data/product_info/psu.csv +++ b/data/product_info/psu.csv @@ -0,0 +1,3 @@ +simplePCBuilding-Powersupply-Data-Library +ID,Wattage,80pCert,Manufacturer,Name +1, \ No newline at end of file diff --git a/data/product_info/ssds.csv b/data/product_info/ssds.csv new file mode 100644 index 0000000..e69de29 diff --git a/gui_main/configurator.kv b/gui_main/configurator.kv index fee2dbf..598918e 100644 --- a/gui_main/configurator.kv +++ b/gui_main/configurator.kv @@ -19,11 +19,18 @@ MDScreen: pos_hint: {"x": 0.6, "y": 0.8} values: ["Gaming", "Videobearbeitung", "Fotobearbeitung", "Live-Streaming", "Office/Internet"] Spinner: - text: "" + text: "Bildschirmauflösung" size_hint: 0.3, 0.1 + pos_hint: {"x": 0.1, "y": 0.6} + values: ["720p (HD)", "1080p (FullHD)", "1440p (2K, WQHD)", "2160p (4K, UHD)", "4320p (8K)"] + Spinner: + text: "Betriebssystem" + size_hint: 0.3, 0.1 + pos_hint: {"x": 0.1, "y": 0.6} + values: ["Windows 10", "Windows 11", "GNU/Linux (Alle Distributionen)"] MDTextField: hint_text: "Budget" - id: test + id: budget_info size_hint: 0.3, 0.1 pos_hint: {"x": 0.1, "y": 0.8} MDCheckbox: