mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Applied requested changes proposed by @ninovanhooff
Fixed a couple of missed double quotes, trailing and leading spaces, to long comment lines
This commit is contained in:
parent
9b44ca37ef
commit
679739d09d
9 changed files with 27 additions and 28 deletions
|
@ -27,7 +27,7 @@ class Account(QObject):
|
|||
api = CuraAPI()
|
||||
api.account.login()
|
||||
api.account.logout()
|
||||
api.account.userProfile Who is logged in``
|
||||
api.account.userProfile # Who is logged in
|
||||
"""
|
||||
|
||||
loginStateChanged = pyqtSignal(bool)
|
||||
|
|
|
@ -20,7 +20,7 @@ class Backups:
|
|||
from cura.API import CuraAPI
|
||||
api = CuraAPI()
|
||||
api.backups.createBackup()
|
||||
api.backups.restoreBackup(my_zip_file, {"cura_release": "3.1"})``
|
||||
api.backups.restoreBackup(my_zip_file, {"cura_release": "3.1"})
|
||||
"""
|
||||
|
||||
def __init__(self, application: "CuraApplication") -> None:
|
||||
|
|
|
@ -26,7 +26,7 @@ class Settings:
|
|||
"actions": my_menu_actions,
|
||||
"menu_item": MyPluginAction(self)
|
||||
}
|
||||
api.interface.settings.addContextMenuItem(data)``
|
||||
api.interface.settings.addContextMenuItem(data)
|
||||
"""
|
||||
|
||||
def __init__(self, application: "CuraApplication") -> None:
|
||||
|
|
|
@ -1117,8 +1117,8 @@ class BuildVolume(SceneNode):
|
|||
def getEdgeDisallowedSize(self):
|
||||
"""Calculate the disallowed radius around the edge.
|
||||
|
||||
This disallowed radius is to allow for space around the models that is not part of the collision radius, such as
|
||||
bed adhesion (skirt/brim/raft) and travel avoid distance.
|
||||
This disallowed radius is to allow for space around the models that is not part of the collision radius,
|
||||
such as bed adhesion (skirt/brim/raft) and travel avoid distance.
|
||||
"""
|
||||
|
||||
if not self._global_container_stack or not self._global_container_stack.extruderList:
|
||||
|
|
|
@ -440,8 +440,7 @@ class CuraApplication(QtApplication):
|
|||
|
||||
def __setLatestResouceVersionsForVersionUpgrade(self):
|
||||
"""Initializes the version upgrade manager with by providing the paths for each resource type and the latest
|
||||
versions.
|
||||
"""
|
||||
versions. """
|
||||
|
||||
self._version_upgrade_manager.setCurrentVersions(
|
||||
{
|
||||
|
|
|
@ -46,8 +46,8 @@ class LayerDataBuilder(MeshBuilder):
|
|||
def build(self, material_color_map, line_type_brightness = 1.0):
|
||||
"""Return the layer data as :py:class:`cura.LayerData.LayerData`.
|
||||
|
||||
:param material_color_map:: [r, g, b, a] for each extruder row.
|
||||
:param line_type_brightness:: compatibility layer view uses line type brightness of 0.5
|
||||
:param material_color_map: [r, g, b, a] for each extruder row.
|
||||
:param line_type_brightness: compatibility layer view uses line type brightness of 0.5
|
||||
"""
|
||||
|
||||
vertex_count = 0
|
||||
|
|
|
@ -91,15 +91,15 @@ class LayerPolygon:
|
|||
|
||||
The arrays are either by vertex or by indices.
|
||||
|
||||
:param vertex_offset: : determines where to start and end filling the arrays
|
||||
:param index_offset: : determines where to start and end filling the arrays
|
||||
:param vertices: : vertex numpy array to be filled
|
||||
:param colors: : vertex numpy array to be filled
|
||||
:param line_dimensions: : vertex numpy array to be filled
|
||||
:param feedrates: : vertex numpy array to be filled
|
||||
:param extruders: : vertex numpy array to be filled
|
||||
:param line_types: : vertex numpy array to be filled
|
||||
:param indices: : index numpy array to be filled
|
||||
:param vertex_offset: determines where to start and end filling the arrays
|
||||
:param index_offset: determines where to start and end filling the arrays
|
||||
:param vertices: vertex numpy array to be filled
|
||||
:param colors: vertex numpy array to be filled
|
||||
:param line_dimensions: vertex numpy array to be filled
|
||||
:param feedrates: vertex numpy array to be filled
|
||||
:param extruders: vertex numpy array to be filled
|
||||
:param line_types: vertex numpy array to be filled
|
||||
:param indices: index numpy array to be filled
|
||||
"""
|
||||
|
||||
if self._build_cache_line_mesh_mask is None or self._build_cache_needed_points is None:
|
||||
|
|
|
@ -74,7 +74,7 @@ class MachineAction(QObject, PluginObject):
|
|||
def _reset(self) -> None:
|
||||
"""Protected implementation of reset.
|
||||
|
||||
:py:meth:`cura.MachineAction.MachineAction.reset`
|
||||
See also :py:meth:`cura.MachineAction.MachineAction.reset`
|
||||
"""
|
||||
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue