mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 06:11:09 -07:00
Add first machines endpoint
Contributes to CL-1331
This commit is contained in:
parent
602258bb4a
commit
dc21269834
2 changed files with 84 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ from PyQt5.QtCore import QObject, pyqtProperty
|
|||
|
||||
from cura.API.Backups import Backups
|
||||
from cura.API.Interface import Interface
|
||||
from cura.API.Machines import Machines
|
||||
from cura.API.Account import Account
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -44,6 +45,9 @@ class CuraAPI(QObject):
|
|||
# Backups API
|
||||
self._backups = Backups(self._application)
|
||||
|
||||
# Machines API
|
||||
self._machines = Machines(self._application)
|
||||
|
||||
# Interface API
|
||||
self._interface = Interface(self._application)
|
||||
|
||||
|
|
@ -58,6 +62,10 @@ class CuraAPI(QObject):
|
|||
def backups(self) -> "Backups":
|
||||
return self._backups
|
||||
|
||||
@property
|
||||
def machines(self) -> "Machines":
|
||||
return self._machines
|
||||
|
||||
@property
|
||||
def interface(self) -> "Interface":
|
||||
return self._interface
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue