SettingExport.py 470 B

1234567891011121314151617181920
  1. # Copyright (c) 2024 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from PyQt6.QtCore import QObject, pyqtProperty
  4. class SettingsExport(QObject):
  5. def __init__(self, name, value):
  6. super().__init__()
  7. self._name = name
  8. self._value = value
  9. @pyqtProperty(str, constant=True)
  10. def name(self):
  11. return self._name
  12. @pyqtProperty(str, constant=True)
  13. def value(self):
  14. return self._value