mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Remove trailing whitespace from Python files
This commit is contained in:
parent
1e33360c35
commit
89f0970a88
157 changed files with 562 additions and 562 deletions
|
@ -73,7 +73,7 @@ class AuthorsModel(ListModel):
|
|||
|
||||
def setFilter(self, filter_dict: Dict[str, str]) -> None:
|
||||
"""Set the filter of this model based on a string.
|
||||
|
||||
|
||||
:param filter_dict: Dictionary to do the filtering by.
|
||||
"""
|
||||
if filter_dict != self._filter:
|
||||
|
|
|
@ -10,7 +10,7 @@ from .SubscribedPackagesModel import SubscribedPackagesModel
|
|||
|
||||
class DiscrepanciesPresenter(QObject):
|
||||
"""Shows a list of packages to be added or removed. The user can select which packages to (un)install. The user's
|
||||
|
||||
|
||||
choices are emitted on the `packageMutations` Signal.
|
||||
"""
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ from .SubscribedPackagesModel import SubscribedPackagesModel
|
|||
|
||||
class DownloadPresenter:
|
||||
"""Downloads a set of packages from the Ultimaker Cloud Marketplace
|
||||
|
||||
|
||||
use download() exactly once: should not be used for multiple sets of downloads since this class contains state
|
||||
"""
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class LicensePresenter(QObject):
|
|||
|
||||
def present(self, plugin_path: str, packages: Dict[str, Dict[str, str]]) -> None:
|
||||
"""Show a license dialog for multiple packages where users can read a license and accept or decline them
|
||||
|
||||
|
||||
:param plugin_path: Root directory of the Toolbox plugin
|
||||
:param packages: Dict[package id, file path]
|
||||
"""
|
||||
|
|
|
@ -5,7 +5,7 @@ from cura.CuraApplication import CuraApplication
|
|||
|
||||
class RestartApplicationPresenter:
|
||||
"""Presents a dialog telling the user that a restart is required to apply changes
|
||||
|
||||
|
||||
Since we cannot restart Cura, the app is closed instead when the button is clicked
|
||||
"""
|
||||
def __init__(self, app: CuraApplication) -> None:
|
||||
|
|
|
@ -18,7 +18,7 @@ from .SubscribedPackagesModel import SubscribedPackagesModel
|
|||
|
||||
class SyncOrchestrator(Extension):
|
||||
"""Orchestrates the synchronizing of packages from the user account to the installed packages
|
||||
|
||||
|
||||
Example flow:
|
||||
|
||||
- CloudPackageChecker compares a list of packages the user `subscribed` to in their account
|
||||
|
@ -68,7 +68,7 @@ class SyncOrchestrator(Extension):
|
|||
|
||||
def _onDownloadFinished(self, success_items: Dict[str, Dict[str, str]], error_items: List[str]) -> None:
|
||||
"""Called when a set of packages have finished downloading
|
||||
|
||||
|
||||
:param success_items:: Dict[package_id, Dict[str, str]]
|
||||
:param error_items:: List[package_id]
|
||||
"""
|
||||
|
|
|
@ -137,7 +137,7 @@ class PackagesModel(ListModel):
|
|||
|
||||
def setFilter(self, filter_dict: Dict[str, str]) -> None:
|
||||
"""Set the filter of this model based on a string.
|
||||
|
||||
|
||||
:param filter_dict: Dictionary to do the filtering by.
|
||||
"""
|
||||
if filter_dict != self._filter:
|
||||
|
|
|
@ -315,7 +315,7 @@ class Toolbox(QObject, Extension):
|
|||
@pyqtSlot(str)
|
||||
def checkPackageUsageAndUninstall(self, package_id: str) -> None:
|
||||
"""Check package usage and uninstall
|
||||
|
||||
|
||||
If the package is in use, you'll get a confirmation dialog to set everything to default
|
||||
"""
|
||||
|
||||
|
@ -359,7 +359,7 @@ class Toolbox(QObject, Extension):
|
|||
@pyqtSlot()
|
||||
def resetMaterialsQualitiesAndUninstall(self) -> None:
|
||||
"""Uses "uninstall variables" to reset qualities and materials, then uninstall
|
||||
|
||||
|
||||
It's used as an action on Confirm reset on Uninstall
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue